/* ============================================
   RESET & BASE – Prevent horizontal overflow
   ============================================ */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #1c1e21;
    line-height: 1.34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   PAGE WRAPPER – Prevent overflow
   ============================================ */
.profile-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #d0d7de;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a66c2;
    letter-spacing: -0.5px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e6eb;
    margin-bottom: 20px;
}
.sidebar .logo i {
    margin-right: 8px;
}

.sidebar nav {
    flex: 1;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #1c1e21;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.15s;
    margin-bottom: 2px;
    cursor: pointer;
}
.sidebar nav a i {
    width: 22px;
    font-size: 1.15rem;
    color: #5f6b7a;
}
.sidebar nav a:hover {
    background: #f0f2f5;
}
.sidebar nav a.active {
    background: #e7f3ff;
    color: #0a66c2;
}
.sidebar nav a.active i {
    color: #0a66c2;
}

.sidebar .mini-profile {
    border-top: 1px solid #e4e6eb;
    padding-top: 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar .mini-profile .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar .mini-profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar .mini-profile .info {
    font-size: 0.85rem;
    line-height: 1.3;
}
.sidebar .mini-profile .info .name {
    font-weight: 600;
}
.sidebar .mini-profile .info .title {
    color: #5f6b7a;
    font-size: 0.75rem;
}

/* ============================================
   MAIN CONTENT – Prevent overflow
   ============================================ */
.main {
    flex: 1;
    padding: 0 0 60px 0;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    background: #f0f2f5;
    overflow-x: hidden;
}

/* ============================================
   PROFILE HEADER
   ============================================ */
.profile-header {
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cover {
    height: 300px;
    background: #d0d7de;
    position: relative;
    overflow: hidden;
}
.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover .cover-edit {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1c1e21;
    cursor: default;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 0 20px 16px 20px;
    position: relative;
    margin-top: -60px;
    flex-wrap: wrap;
    gap: 16px 24px;
    width: 100%;
}

.profile-info .avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #e4e6eb;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin-bottom: -30px;
}
.profile-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info .name-wrap {
    flex: 1;
    min-width: 200px;
    padding-top: 70px;
    word-break: break-word;
}
.profile-info .name-wrap h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.profile-info .name-wrap .headline {
    font-size: 1rem;
    color: #5f6b7a;
}
.profile-info .name-wrap .location {
    font-size: 0.9rem;
    color: #5f6b7a;
    margin-top: 2px;
}
.profile-info .name-wrap .location i {
    margin-right: 6px;
    width: 16px;
}

.profile-info .stats {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 0.95rem;
    color: #5f6b7a;
    flex-wrap: wrap;
}
.profile-info .stats span {
    font-weight: 600;
    color: #1c1e21;
}

/* Badges (scrollable) */
.badge-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    max-width: 100%;
    position: relative;
}

.badge-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 8px;
    padding: 4px 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.badge-container::-webkit-scrollbar {
    display: none;
}

.badge {
    flex: 0 0 auto;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tier Colors */
.badge-tier-1 {
    background: #f8e7d4;
    color: #7a4d1a;
    border-color: #e2c4a8;
}
.badge-tier-2 {
    background: #e6e6e6;
    color: #4a4a4a;
    border-color: #cccccc;
}
.badge-tier-3 {
    background: #fef3c7;
    color: #856404;
    border-color: #fde68a;
}
.badge-tier-4 {
    background: #dbeafe;
    color: #1e3a8a;
    border-color: #93c5fd;
}

.scroll-btn {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #5f6b7a;
    flex-shrink: 0;
    transition: background 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    z-index: 2;
}
.scroll-btn:hover {
    background: #f0f2f5;
}
.scroll-btn.left {
    display: none;
}
.scroll-btn.right {
    display: flex;
}

.profile-info .actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    padding-top: 70px;
    flex-wrap: wrap;
}
.profile-info .actions button {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    background: #e4e6eb;
    color: #1c1e21;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-info .actions .btn-primary {
    background: #0a66c2;
    color: #fff;
}
.profile-info .actions .btn-outline {
    background: transparent;
    border: 1px solid #ced0d4;
}

/* ============================================
   TABS – Prevent overflow
   ============================================ */
.tabs {
    background: #fff;
    border-top: 1px solid #ced0d4;
    padding: 0 20px;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    margin-top: -1px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}
.tabs button {
    background: none;
    border: none;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #5f6b7a;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: 0.1s;
    white-space: nowrap;
}
.tabs button:hover {
    color: #0a66c2;
}
.tabs button.active {
    color: #0a66c2;
    border-bottom-color: #0a66c2;
}

/* ============================================
   PROFILE BODY – Prevent overflow
   ============================================ */
.profile-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
}

/* ============================================
   CARDS – Prevent overflow
   ============================================ */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}
.card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card .card-title i {
    color: #0a66c2;
    width: 20px;
}

/* About items */
.about-item {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f2f5;
    align-items: flex-start;
}
.about-item:last-child {
    border-bottom: none;
}
.about-item .label {
    width: 110px;
    flex-shrink: 0;
    color: #5f6b7a;
    font-weight: 500;
    font-size: 0.9rem;
}
.about-item .value {
    font-size: 0.95rem;
    word-break: break-word;
}

/* Skill Tree */
.skill-item {
    margin-bottom: 18px;
}
.skill-item:last-child {
    margin-bottom: 0;
}
.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.skill-header .level {
    color: #5f6b7a;
    font-weight: 400;
}
.progress-bar {
    height: 6px;
    background: #e4e6eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar .fill {
    height: 100%;
    background: #0a66c2;
    border-radius: 4px;
}

.skill-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.skill-nodes .node {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #1c1e21;
}
.skill-nodes .node .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.skill-nodes .node .dot.filled {
    background: #0a66c2;
}
.skill-nodes .node .dot.empty {
    background: #d0d7de;
}

/* Experience / Education / Projects */
.exp-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}
.exp-item:last-child {
    border-bottom: none;
}
.exp-item .icon {
    width: 36px;
    height: 36px;
    background: #e7f3ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a66c2;
    flex-shrink: 0;
    font-size: 1rem;
}
.exp-item .content .title {
    font-weight: 600;
}
.exp-item .content .sub {
    font-size: 0.9rem;
    color: #5f6b7a;
}
.exp-item .content .date {
    font-size: 0.8rem;
    color: #5f6b7a;
}
.exp-item .content .desc {
    font-size: 0.9rem;
    margin-top: 4px;
    color: #1c1e21;
}

/* Connections */
.connections-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}
.connections-tabs button {
    background: none;
    border: none;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #5f6b7a;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.connections-tabs button:hover {
    background: #f0f2f5;
    color: #1c1e21;
}
.connections-tabs button.active {
    background: #e7f3ff;
    color: #0a66c2;
}
.connections-tabs button i {
    font-size: 0.9rem;
}

.connection-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s, box-shadow 0.1s;
    border-left: 4px solid #d0d7de;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.conn-mentor { border-left-color: #0a66c2; background: #f0f5fe; }
.conn-mentee { border-left-color: #45bd62; background: #f0faf2; }
.conn-colleague { border-left-color: #f7b928; background: #fffbf0; }
.conn-friend { border-left-color: #ea3943; background: #fef0f0; }
.conn-other { border-left-color: #8a9aa8; background: #f8f9fa; }

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-switch input:checked+.slider {
    background: #0a66c2;
}
.toggle-switch input:checked+.slider:before {
    transform: translateX(18px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fade 0.2s ease;
}
.tab-content.active {
    display: block;
}

@keyframes fade {
    0% { opacity: 0.6; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TOP NAVIGATION BAR – Prevent overflow
   ============================================ */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #d0d7de;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 150;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}
.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
}
.top-nav .nav-left::-webkit-scrollbar {
    display: none;
}
.top-nav .nav-left .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a66c2;
    margin-right: 12px;
}
.top-nav .nav-left .logo i {
    margin-right: 6px;
}
.top-nav .nav-left button {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #5f6b7a;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}
.top-nav .nav-left button:hover {
    background: #f0f2f5;
}
.top-nav .nav-left button.active {
    color: #0a66c2;
    background: #e7f3ff;
}
.top-nav .nav-left button span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
}

.top-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.top-nav .nav-right button {
    background: none;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    color: #5f6b7a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-nav .nav-right button:hover {
    background: #f0f2f5;
}
.top-nav .nav-right .avatar-btn {
    padding: 2px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.top-nav .nav-right .avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.top-nav .nav-right .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ea3943;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

/* Dropdowns */
.top-nav .dropdown {
    position: relative;
}
.top-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    z-index: 1000 !important;
    border: 1px solid #e4e6eb;
}
.top-nav .dropdown-menu.show {
    display: block;
}
.top-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #1c1e21;
    font-size: 0.9rem;
    transition: background 0.1s;
    text-decoration: none;
}
.top-nav .dropdown-menu a:hover {
    background: #f0f2f5;
}
.top-nav .dropdown-menu .divider {
    height: 1px;
    background: #e4e6eb;
    margin: 4px 0;
}

/* ============================================
   FEED-SPECIFIC STYLES – Prevent overflow
   ============================================ */

.feed-header {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}
.feed-header button {
    flex: 1 1 auto;
    padding: 10px;
    border: none;
    background: #e4e6eb;
    color: #1c1e21;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
    min-width: 0;
}
.feed-header button.active {
    background: #0a66c2;
    color: #fff;
}
.feed-header button:hover { opacity: 0.8; }

/* Share Box */
.share-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
}
.share-box .top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.share-box .top .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.share-box .top .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.share-box .top input {
    flex: 1;
    border: none;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
    width: 100%;
}
.share-box .top input:focus {
    background: #e4e6eb;
}
.share-box .top input::placeholder {
    color: #5f6b7a;
}
.share-box .top .post-submit {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.share-box .top .post-submit:hover {
    background: #004182;
    transform: scale(1.02);
}
.share-box .top .post-submit:active {
    transform: scale(0.96);
}

.share-box .divider {
    height: 1px;
    background: #ced0d4;
    margin: 12px 0;
}

.share-box .bottom {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 6px;
}
.share-box .bottom button {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #5f6b7a;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.15s;
    flex: 1;
    justify-content: center;
    min-width: 80px;
}
.share-box .bottom button:hover {
    background: #f0f2f5;
}
.share-box .bottom button i {
    font-size: 1.1rem;
}
.share-box .bottom button .btn-label {
    font-size: 0.8rem;
}
.share-box .bottom button.active-type {
    background: #e7f3ff;
    color: #0a66c2;
    box-shadow: 0 0 0 2px #0a66c2 inset;
    transform: scale(1.02);
}
.share-box .bottom button.active-type.hire {
    background: #e7f3ff;
    color: #0a66c2;
    box-shadow: 0 0 0 2px #0a66c2 inset;
}
.share-box .bottom button.active-type.consult {
    background: #fffbf0;
    color: #856404;
    box-shadow: 0 0 0 2px #f7b928 inset;
}
.share-box .bottom button.active-type.tutorial {
    background: #f0faf2;
    color: #2e7d32;
    box-shadow: 0 0 0 2px #45bd62 inset;
}
.share-box .bottom button.active-type.post {
    background: #fef0f0;
    color: #c62828;
    box-shadow: 0 0 0 2px #ea3943 inset;
}
.share-box .bottom button.active-type.photo {
    background: #f0faf2;
    color: #2e7d32;
    box-shadow: 0 0 0 2px #45bd62 inset;
}
.share-box .bottom button.active-type.video {
    background: #fef0f0;
    color: #c62828;
    box-shadow: 0 0 0 2px #ea3943 inset;
}
.share-box .bottom button.active-type.feeling {
    background: #fffbf0;
    color: #856404;
    box-shadow: 0 0 0 2px #f7b928 inset;
}
.share-box .bottom button.active-type::after {
    content: ' ✓';
    font-weight: 700;
    color: inherit;
}

/* Feed Posts */
.feed-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}
.feed-post .post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.feed-post .post-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.feed-post .post-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-post .post-header .info .name { font-weight: 600; }
.feed-post .post-header .info .time { font-size: 0.8rem; color: #5f6b7a; }
.feed-post .post-content { margin: 8px 0 12px 0; font-size: 0.95rem; }
.feed-post .post-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.feed-post .post-actions button {
    background: none;
    border: none;
    font-weight: 500;
    color: #5f6b7a;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
}
.feed-post .post-actions button:hover { background: #f0f2f5; }

/* Personal Feed Styling */
.feed-post.personal {
    border-left: 4px solid #ea3943;
    background: #fffafb;
}
.feed-post.personal .post-content {
    font-size: 1rem;
    line-height: 1.5;
}

/* Professional Feed Styling */
.feed-post.professional {
    border-left: 4px solid #0a66c2;
}

/* Post Tags & Badges */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.post-tags span {
    background: #e7f3ff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #0a66c2;
    font-weight: 500;
}

.post-category-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.post-category-badge.hire { background: #e7f3ff; color: #0a66c2; }
.post-category-badge.consult { background: #fffbf0; color: #856404; }
.post-category-badge.tutorial { background: #f0faf2; color: #2e7d32; }
.post-category-badge.post { background: #fef0f0; color: #c62828; }

/* Job-specific */
.job-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px 0;
    flex-wrap: wrap;
}
.job-company img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}
.job-company .company-name { font-weight: 600; font-size: 1.1rem; }
.job-company .company-location { font-size: 0.85rem; color: #5f6b7a; }

.job-required-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.job-required-skills span {
    background: #e7f3ff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #0a66c2;
}

/* Buttons */
.apply-btn {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.apply-btn:hover { opacity: 0.85; }

.send-skill-btn {
    background: #45bd62;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.send-skill-btn:hover { opacity: 0.85; }

.consult-btn {
    background: #f7b928;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.consult-btn:hover { opacity: 0.85; }

.mentor-btn {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.mentor-btn:hover { opacity: 0.85; }

.rate-badge {
    background: #fef3c7;
    color: #856404;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Notification Items */
.notification-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    border-left: 4px solid #0a66c2;
    cursor: pointer;
    transition: background 0.15s;
}
.notification-item:hover {
    background: #f0f2f5;
}
.notification-item .notif-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-item .notif-header .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}
.notification-item .notif-header .avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.notification-item .notif-header .name {
    font-weight: 600;
}
.notification-item .notif-header .time {
    font-size: 0.75rem;
    color: #5f6b7a;
    margin-left: auto;
}
.notification-item .notif-body {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #1c1e21;
}

.feed-empty {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 40px 20px;
    text-align: center;
    color: #5f6b7a;
}
.feed-empty i { font-size: 2.5rem; color: #d0d7de; margin-bottom: 12px; }
.feed-empty h3 { font-weight: 600; margin-bottom: 4px; color: #1c1e21; }

/* Reels Grid */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.reels-grid .reel-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid #e4e6eb;
}
.reels-grid .reel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.reels-grid .reel-item .thumb {
    width: 100%;
    aspect-ratio: 9/16;
    background: #d0d7de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5f6b7a;
    position: relative;
}
.reels-grid .reel-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reels-grid .reel-item .thumb .play-icon {
    position: absolute;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.reels-grid .reel-item .info {
    padding: 8px 12px;
}
.reels-grid .reel-item .info .title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.reels-grid .reel-item .info .views {
    font-size: 0.75rem;
    color: #5f6b7a;
}

/* Dashboard Stats */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.dashboard-grid .stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e4e6eb;
}
.dashboard-grid .stat-card .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.dashboard-grid .stat-card .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c1e21;
}
.dashboard-grid .stat-card .label {
    font-size: 0.8rem;
    color: #5f6b7a;
    margin-top: 2px;
}
.dashboard-grid .stat-card.green .value { color: #45bd62; }
.dashboard-grid .stat-card.blue .value { color: #0a66c2; }
.dashboard-grid .stat-card.gold .value { color: #f7b928; }
.dashboard-grid .stat-card.red .value { color: #ea3943; }
.dashboard-grid .stat-card.purple .value { color: #8b5cf6; }

/* Groups List */
.groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}
.groups-list .group-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    cursor: pointer;
    transition: background 0.15s;
}
.groups-list .group-item:hover {
    background: #f0f2f5;
}
.groups-list .group-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e7f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #0a66c2;
    flex-shrink: 0;
}
.groups-list .group-item .info {
    flex: 1;
}
.groups-list .group-item .info .name {
    font-weight: 600;
}
.groups-list .group-item .info .desc {
    font-size: 0.85rem;
    color: #5f6b7a;
}
.groups-list .group-item .members {
    font-size: 0.8rem;
    color: #5f6b7a;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.messages-list .msg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    cursor: pointer;
    transition: background 0.15s;
}
.messages-list .msg-item:hover {
    background: #f0f2f5;
}
.messages-list .msg-item .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.messages-list .msg-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.messages-list .msg-item .content {
    flex: 1;
}
.messages-list .msg-item .content .from {
    font-weight: 600;
}
.messages-list .msg-item .content .preview {
    font-size: 0.85rem;
    color: #5f6b7a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.messages-list .msg-item .time {
    font-size: 0.75rem;
    color: #5f6b7a;
}
.messages-list .msg-item .badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0a66c2;
    flex-shrink: 0;
}

/* Video Player */
.video-player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 12px;
}
.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 24px;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}
.modal-content h2, .modal-content h3 { margin-bottom: 4px; }
.modal-content .close-modal {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 1.8rem;
    font-weight: 300;
    color: #5f6b7a;
    cursor: pointer;
}
.modal-content .close-modal:hover {
    color: #1c1e21;
}

.modal-content .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.modal-content .skill-list span {
    background: #f0f2f5;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
}
.modal-content .success {
    color: #45bd62;
    font-weight: 600;
}
.modal-content .fail {
    color: #ea3943;
    font-weight: 600;
}

.btn-primary {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-outline {
    background: transparent;
    border: 1px solid #ced0d4;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.btn-outline:hover { background: #f0f2f5; }

/* ============================================
   RECRUITER MODE & RESUME STYLES
   ============================================ */

.recruiter-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #5f6b7a;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f2f5;
    transition: 0.15s;
}
.recruiter-toggle:hover {
    background: #e4e6eb;
}
.recruiter-toggle input[type="checkbox"] {
    width: 34px;
    height: 18px;
    appearance: none;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.recruiter-toggle input[type="checkbox"]:checked {
    background: #0a66c2;
}
.recruiter-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.2s;
}
.recruiter-toggle input[type="checkbox"]:checked::before {
    left: 18px;
}
.recruiter-toggle .badge-recruiter {
    background: #0a66c2;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

.resume-section {
    margin-bottom: 16px;
}
.resume-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0a66c2;
    border-bottom: 2px solid #e7f3ff;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.resume-item {
    padding: 4px 0;
}
.resume-item .title {
    font-weight: 600;
}
.resume-item .sub {
    color: #5f6b7a;
    font-size: 0.85rem;
}
.resume-item .date {
    color: #5f6b7a;
    font-size: 0.75rem;
}
.resume-item .desc {
    font-size: 0.85rem;
    margin-top: 2px;
    color: #1c1e21;
}
.resume-skill-tag {
    background: #e7f3ff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #0a66c2;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

/* ============================================
   SUGGESTIONS PAGE STYLES
   ============================================ */

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: #0a66c2; }
.section-title .badge-count {
    background: #e7f3ff;
    color: #0a66c2;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.suggestion-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    transition: transform 0.1s, box-shadow 0.1s;
    border-left: 4px solid #d0d7de;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.suggestion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.suggestion-card .header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.suggestion-card .header .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.suggestion-card .header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.suggestion-card .header .info .name {
    font-weight: 600;
}
.suggestion-card .header .info .detail {
    font-size: 0.85rem;
    color: #5f6b7a;
}
.suggestion-card .body {
    font-size: 0.9rem;
    color: #1c1e21;
    flex: 1;
}
.suggestion-card .footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    align-items: center;
}
.suggestion-card .footer .tag {
    background: #e7f3ff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #0a66c2;
}
.suggestion-card .footer .match-badge {
    font-size: 0.75rem;
    color: #45bd62;
    font-weight: 600;
    margin-right: auto;
}
.suggestion-card .footer .btn-sm {
    padding: 4px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}
.suggestion-card .footer .btn-sm.primary {
    background: #0a66c2;
    color: #fff;
}
.suggestion-card .footer .btn-sm.primary:hover { opacity: 0.85; }
.suggestion-card .footer .btn-sm.green {
    background: #45bd62;
    color: #fff;
}
.suggestion-card .footer .btn-sm.green:hover { opacity: 0.85; }
.suggestion-card .footer .btn-sm.gold {
    background: #f7b928;
    color: #fff;
}
.suggestion-card .footer .btn-sm.gold:hover { opacity: 0.85; }
.suggestion-card .footer .btn-sm.outline {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
}
.suggestion-card .footer .btn-sm.outline:hover { background: #e7f3ff; }

.suggestion-card.type-mentor { border-left-color: #0a66c2; background: #f0f5fe; }
.suggestion-card.type-mentee { border-left-color: #45bd62; background: #f0faf2; }
.suggestion-card.type-group { border-left-color: #8b5cf6; background: #f5f0ff; }
.suggestion-card.type-tutorial { border-left-color: #f7b928; background: #fffbf0; }
.suggestion-card.type-job { border-left-color: #ea3943; background: #fef0f0; }

.suggestion-card .group-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e7f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0a66c2;
    flex-shrink: 0;
}
.suggestion-card .company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.suggestion-card .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.suggestion-card .job-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #5f6b7a;
}
.suggestion-card .job-desc {
    margin-top: 4px;
    font-size: 0.9rem;
}
.suggestion-card .job-skills {
    margin-top: 4px;
}

/* ============================================
   MENTORING PAGE – PROFESSIONAL STYLES
   ============================================ */

.mentoring-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.mentoring-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}
.mentoring-header .role-toggle {
    display: flex;
    background: #f0f2f5;
    border-radius: 24px;
    padding: 4px;
    gap: 4px;
}
.mentoring-header .role-toggle button {
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    background: transparent;
    color: #5f6b7a;
}
.mentoring-header .role-toggle button.active {
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}
.mentoring-header .role-toggle button:hover:not(.active) {
    background: #e4e6eb;
}

/* Stats */
.mentoring-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.mentoring-stat {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.15s;
    cursor: pointer;
}
.mentoring-stat:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.mentoring-stat .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.mentoring-stat .stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c1e21;
    line-height: 1.2;
}
.mentoring-stat .stat-label {
    font-size: 0.8rem;
    color: #5f6b7a;
    margin-top: 1px;
}

/* Sub-tabs */
.mentoring-sub-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 6px 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    overflow-x: auto;
}
.mentoring-sub-tabs button {
    background: none;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #5f6b7a;
    cursor: pointer;
    transition: 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mentoring-sub-tabs button:hover {
    background: #f0f2f5;
}
.mentoring-sub-tabs button.active {
    background: #e7f3ff;
    color: #0a66c2;
}
.mentoring-sub-tabs button i {
    font-size: 0.9rem;
}

/* Panel header */
.mentoring-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.mentoring-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Schedule cards */
.mentoring-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.schedule-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
}
.schedule-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.schedule-card .schedule-date {
    text-align: center;
    min-width: 65px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}
.schedule-card .schedule-date .day {
    font-size: 0.7rem;
    font-weight: 600;
    color: #5f6b7a;
    text-transform: uppercase;
    display: block;
}
.schedule-card .schedule-date .date {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1e21;
}
.schedule-card .schedule-info {
    flex: 1;
}
.schedule-card .schedule-info .title {
    font-weight: 600;
}
.schedule-card .schedule-info .meta {
    font-size: 0.8rem;
    color: #5f6b7a;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.schedule-card .schedule-info .meta i {
    margin-right: 4px;
}
.schedule-card .status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-badge.upcoming {
    background: #e7f3ff;
    color: #0a66c2;
}
.status-badge.completed {
    background: #f0faf2;
    color: #2e7d32;
}
.status-badge.missed {
    background: #fef0f0;
    color: #c62828;
}

/* Lesson cards */
.lesson-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0a66c2;
    transition: box-shadow 0.15s;
    cursor: pointer;
}
.lesson-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.lesson-card .lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}
.lesson-card .lesson-title {
    font-weight: 600;
    font-size: 1rem;
}
.lesson-card .lesson-meta {
    font-size: 0.8rem;
    color: #5f6b7a;
    margin-top: 4px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.lesson-card .lesson-meta i {
    margin-right: 4px;
}
.lesson-card .progress-text {
    font-weight: 700;
    color: #0a66c2;
    font-size: 0.9rem;
}
.lesson-card .lesson-description {
    font-size: 0.9rem;
    color: #1c1e21;
    margin-top: 6px;
}
.lesson-card .lesson-progress {
    margin-top: 10px;
    background: #e4e6eb;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.lesson-card .lesson-progress .progress-bar {
    height: 100%;
    background: #0a66c2;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Assignment cards */
.assignment-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    transition: box-shadow 0.15s;
    cursor: pointer;
}
.assignment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.assignment-card .assignment-title {
    font-weight: 600;
}
.assignment-card .assignment-desc {
    font-size: 0.85rem;
    color: #1c1e21;
    margin-top: 2px;
}
.assignment-card .assignment-meta {
    font-size: 0.75rem;
    color: #5f6b7a;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.assignment-card .assignment-meta i {
    margin-right: 4px;
}
.assignment-card .assignment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Score grid */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.score-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.15s;
}
.score-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.score-card .score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.score-card .score-name {
    font-weight: 600;
}
.score-card .score-value {
    font-size: 1.2rem;
    font-weight: 700;
}
.score-card .score-meta {
    font-size: 0.75rem;
    color: #5f6b7a;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}
.score-card .score-bar {
    margin-top: 8px;
    background: #e4e6eb;
    border-radius: 4px;
    height: 4px;
    overflow: hidden;
}
.score-card .score-bar .score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Notes grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.note-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f7b928;
    transition: box-shadow 0.15s;
    cursor: pointer;
}
.note-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.note-card .note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.note-card .note-title {
    font-weight: 600;
}
.note-card .note-date {
    font-size: 0.7rem;
    color: #5f6b7a;
}
.note-card .note-content {
    font-size: 0.9rem;
    color: #1c1e21;
    margin-top: 6px;
}

/* Button variants */
.btn-sm {
    padding: 4px 14px;
    font-size: 0.75rem;
    border-radius: 6px;
}

/* ============================================
   HIRING PAGE STYLES (merged, includes job board & employer view)
   ============================================ */

.hiring-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.hiring-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.hiring-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 6px 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hiring-tabs button {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #5f6b7a;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hiring-tabs button:hover {
    background: #f0f2f5;
}
.hiring-tabs button.active {
    background: #e7f3ff;
    color: #0a66c2;
}
.hiring-tabs button .badge-count {
    background: #ea3943;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: 4px;
}

.hiring-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.hiring-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Job Post Cards (Employer View) */
.job-post-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #0a66c2;
}
.job-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.job-post-title {
    font-weight: 700;
    font-size: 1.05rem;
}
.job-post-company {
    font-size: 0.85rem;
    color: #5f6b7a;
    margin-top: 2px;
}
.job-post-company .job-type {
    background: #e7f3ff;
    color: #0a66c2;
    padding: 0 10px;
    border-radius: 10px;
    font-weight: 600;
}
.job-post-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.job-post-skills .skill-tag {
    background: #f0f2f5;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #1c1e21;
}
.job-post-meta {
    font-size: 0.8rem;
    color: #5f6b7a;
    text-align: right;
}
.job-post-meta .applicant-count {
    display: block;
    font-weight: 600;
    color: #0a66c2;
    margin-top: 2px;
}

/* Applicant List */
.applicant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.applicant-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    transition: background 0.15s;
}
.applicant-card:hover {
    background: #f0f2f5;
}
.applicant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.applicant-avatar {
    cursor: pointer;
}
.applicant-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.applicant-name {
    font-weight: 600;
    cursor: pointer;
}
.applicant-name:hover {
    color: #0a66c2;
}
.applicant-level {
    font-size: 0.8rem;
    color: #5f6b7a;
}
.applicant-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.match-bar {
    width: 80px;
    height: 4px;
    background: #e4e6eb;
    border-radius: 2px;
    overflow: hidden;
}
.match-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s;
}
.match-text {
    font-size: 0.7rem;
    font-weight: 600;
}
.applicant-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.applicant-actions .btn-sm {
    padding: 4px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}
.applicant-actions .btn-sm.primary {
    background: #0a66c2;
    color: #fff;
}
.applicant-actions .btn-sm.primary:hover { opacity: 0.85; }
.applicant-actions .btn-sm.outline {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
}
.applicant-actions .btn-sm.outline:hover { background: #e7f3ff; }
.applicant-actions .btn-sm.gold {
    background: #f7b928;
    color: #fff;
}
.applicant-actions .btn-sm.gold:hover { opacity: 0.85; }

/* Job Board Filters */
.job-board-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.job-board-filters input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #ced0d4;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.15s;
}
.job-board-filters input:focus {
    border-color: #0a66c2;
}
.job-board-filters select {
    padding: 10px 16px;
    border: 1px solid #ced0d4;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    cursor: pointer;
}

/* Job Cards (Job Board) */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.job-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.15s, transform 0.1s;
    cursor: pointer;
}
.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.job-card-company {
    display: flex;
    align-items: center;
    gap: 12px;
}
.job-card-company img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}
.job-card-title {
    font-weight: 600;
    font-size: 1.05rem;
}
.job-card-company-name {
    font-size: 0.9rem;
    color: #5f6b7a;
}
.job-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    color: #5f6b7a;
}
.job-card-meta .job-type {
    background: #e7f3ff;
    color: #0a66c2;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.job-card-body {
    margin: 8px 0;
}
.job-card-description {
    font-size: 0.9rem;
    color: #1c1e21;
    margin-bottom: 8px;
}
.job-card-details {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #5f6b7a;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.job-card-details i {
    width: 16px;
}
.job-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.job-card-skills .skill-tag {
    background: #f0f2f5;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #1c1e21;
}
.job-card-skills .skill-tag.matched {
    background: #e7f3ff;
    color: #0a66c2;
}
.job-card-skills .match-badge {
    font-size: 0.75rem;
    color: #45bd62;
    font-weight: 600;
    margin-left: auto;
}
.job-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
}
.job-card-footer .apply-btn {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 6px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
}
.job-card-footer .apply-btn:hover {
    opacity: 0.85;
}
.job-card-footer .status-badge {
    padding: 4px 16px;
}

/* Application Cards (My Applications) */
.application-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.application-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: box-shadow 0.15s;
}
.application-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.app-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.app-card-header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}
.app-card-title {
    font-weight: 600;
}
.app-card-company {
    font-size: 0.85rem;
    color: #5f6b7a;
}
.app-card-body {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #5f6b7a;
}
.app-card-body i {
    margin-right: 4px;
}
.app-card-header .status-badge {
    margin-left: auto;
}

/* Button variants */
.btn-sm {
    padding: 4px 14px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.15s;
}
.btn-sm.primary {
    background: #0a66c2;
    color: #fff;
}
.btn-sm.primary:hover { opacity: 0.85; }
.btn-sm.outline {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
}
.btn-sm.outline:hover { background: #e7f3ff; }

/* ============================================
   FEED – COMPOSER MODAL, DRILL‑DOWNS, SHARE BOX
   ============================================ */

/* --- Composer Modal --- */
.composer-modal .modal-content {
    max-width: 580px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}
.composer-modal .composer-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.composer-modal .composer-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}
.composer-modal .composer-header .close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #5f6b7a;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.15s;
}
.composer-modal .composer-header .close-btn:hover {
    background: #f0f2f5;
}
.composer-modal .composer-body {
    padding: 16px 20px 12px;
}
.composer-modal .composer-body .user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.composer-modal .composer-body .user-row .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.composer-modal .composer-body .user-row .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.composer-modal .composer-body .user-row .name {
    font-weight: 600;
}
.composer-modal .composer-body .user-row .audience {
    font-size: 0.75rem;
    color: #5f6b7a;
    background: #f0f2f5;
    padding: 2px 10px;
    border-radius: 12px;
}
.composer-modal .composer-body textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    padding: 4px 0;
}
.composer-modal .composer-body textarea::placeholder {
    color: #5f6b7a;
}
.composer-modal .composer-body .post-type-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 8px;
    padding: 8px 0;
    border-top: 1px solid #f0f2f5;
}
.composer-modal .composer-body .post-type-selector button {
    background: none;
    border: none;
    padding: 4px 14px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #5f6b7a;
    cursor: pointer;
    transition: 0.15s;
    border: 1px solid transparent;
}
.composer-modal .composer-body .post-type-selector button:hover {
    background: #f0f2f5;
}
.composer-modal .composer-body .post-type-selector button.active {
    background: #e7f3ff;
    color: #0a66c2;
    border-color: #0a66c2;
}
.composer-modal .composer-body .post-type-selector button.hire.active { background: #e7f3ff; color: #0a66c2; border-color: #0a66c2; }
.composer-modal .composer-body .post-type-selector button.consult.active { background: #fffbf0; color: #856404; border-color: #f7b928; }
.composer-modal .composer-body .post-type-selector button.tutorial.active { background: #f0faf2; color: #2e7d32; border-color: #45bd62; }
.composer-modal .composer-body .post-type-selector button.post.active { background: #fef0f0; color: #c62828; border-color: #ea3943; }
.composer-modal .composer-body .post-type-selector button.poll.active { background: #f0f5fe; color: #0a66c2; border-color: #0a66c2; }
.composer-modal .composer-body .post-type-selector button.gif.active { background: #f5f0ff; color: #8b5cf6; border-color: #8b5cf6; }
.composer-modal .composer-body .post-type-selector button.photo.active { background: #f0faf2; color: #2e7d32; border-color: #45bd62; }
.composer-modal .composer-body .post-type-selector button.video.active { background: #fef0f0; color: #c62828; border-color: #ea3943; }
.composer-modal .composer-body .post-type-selector button.feeling.active { background: #fffbf0; color: #856404; border-color: #f7b928; }
.composer-modal .composer-footer {
    padding: 8px 20px 16px;
    border-top: 1px solid #e4e6eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.composer-modal .composer-footer .action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.composer-modal .composer-footer .action-buttons button {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #5f6b7a;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.composer-modal .composer-footer .action-buttons button:hover {
    background: #f0f2f5;
}
.composer-modal .composer-footer .action-buttons button i {
    font-size: 1.1rem;
}
.composer-modal .composer-footer .action-buttons button .photo-video i { color: #45bd62; }
.composer-modal .composer-footer .action-buttons button .tag i { color: #0a66c2; }
.composer-modal .composer-footer .action-buttons button .location i { color: #ea3943; }
.composer-modal .composer-footer .action-buttons button .feeling i { color: #f7b928; }
.composer-modal .composer-footer .action-buttons button .poll i { color: #0a66c2; }
.composer-modal .composer-footer .action-buttons button .gif i { color: #8b5cf6; }
.composer-modal .composer-footer .post-btn {
    background: #0a66c2;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.15s;
    opacity: 0.5;
    pointer-events: none;
}
.composer-modal .composer-footer .post-btn.active {
    opacity: 1;
    pointer-events: auto;
}
.composer-modal .composer-footer .post-btn.active:hover {
    background: #004182;
}
.composer-modal .composer-body .media-preview {
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px dashed #ced0d4;
    display: none;
}
.composer-modal .composer-body .media-preview.show {
    display: block;
}
.composer-modal .composer-body .media-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}
.composer-modal .composer-body .media-preview .remove-media {
    margin-top: 6px;
    background: none;
    border: none;
    color: #ea3943;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
}

/* --- Dashboard Drill-down Modal --- */
.drilldown-modal .modal-content {
    max-width: 650px;
}
.drilldown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    align-items: center;
}
.drilldown-item:last-child {
    border-bottom: none;
}
.drilldown-item .left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.drilldown-item .left .icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}
.drilldown-item .left .info .title {
    font-weight: 600;
    font-size: 0.95rem;
}
.drilldown-item .left .info .sub {
    font-size: 0.8rem;
    color: #5f6b7a;
}
.drilldown-item .amount {
    font-weight: 700;
    font-size: 1.05rem;
}
.drilldown-summary {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.drilldown-summary .total-label {
    font-size: 0.85rem;
    color: #5f6b7a;
}
.drilldown-summary .total-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a66c2;
}
.dashboard-grid .stat-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.dashboard-grid .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* --- Responsive tweaks for composer --- */
@media (max-width: 600px) {
    .composer-modal .modal-content {
        max-width: 100%;
        margin: 10px;
        border-radius: 12px;
    }
    .composer-modal .composer-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .composer-modal .composer-footer .action-buttons {
        justify-content: center;
    }
    .composer-modal .composer-footer .post-btn {
        width: 100%;
        padding: 10px;
    }
    .drilldown-modal .modal-content {
        margin: 10px;
        padding: 16px;
    }
}

/* ============================================
   RESPONSIVE FIXES (merged)
   ============================================ */

/* Tablets & small screens */
@media (max-width: 1024px) {
    .profile-body {
        grid-template-columns: 1fr 1.5fr;
        gap: 16px;
    }
    .profile-info .avatar {
        width: 130px;
        height: 130px;
    }
    .profile-info .name-wrap {
        padding-top: 50px;
    }
    .profile-info .actions {
        padding-top: 50px;
    }
    .cover {
        height: 220px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    
    .sidebar {
        width: 72px;
        padding: 12px 8px;
    }
    .sidebar .logo {
        font-size: 1.2rem;
        text-align: center;
        padding-bottom: 16px;
        margin-bottom: 12px;
    }
    .sidebar .logo span { display: none; }
    .sidebar .logo i { margin: 0; }
    .sidebar nav a {
        justify-content: center;
        padding: 10px 0;
    }
    .sidebar nav a span { display: none; }
    .sidebar nav a i {
        margin: 0;
        font-size: 1.3rem;
        width: auto;
    }
    .sidebar .mini-profile {
        justify-content: center;
        padding-top: 12px;
        margin-top: 4px;
    }
    .sidebar .mini-profile .info { display: none; }
    .sidebar .mini-profile .avatar {
        width: 36px;
        height: 36px;
    }

    .main {
        padding: 0 0 40px 0;
        width: 100%;
        max-width: 100%;
    }

    .cover {
        height: 150px;
    }
    .cover .cover-edit {
        right: 12px;
        bottom: 12px;
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -40px;
        padding: 0 16px 12px 16px;
        gap: 8px 16px;
        width: 100%;
    }
    .profile-info .avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }
    .profile-info .name-wrap {
        padding-top: 8px;
        min-width: 0;
        width: 100%;
    }
    .profile-info .name-wrap h1 { font-size: 1.5rem; }
    .profile-info .name-wrap .headline { font-size: 0.9rem; }
    .profile-info .name-wrap .location { font-size: 0.8rem; }
    .profile-info .stats {
        justify-content: center;
        font-size: 0.85rem;
        gap: 12px;
    }
    .profile-info .actions {
        margin-left: 0;
        padding-top: 4px;
        justify-content: center;
        width: 100%;
    }
    .profile-info .actions button {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .badge-scroll-wrapper {
        justify-content: center;
        margin-top: 4px;
    }
    .badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .tabs {
        padding: 0 8px;
        gap: 2px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tabs button {
        padding: 10px 6px;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .profile-body {
        grid-template-columns: 1fr;
        padding: 0 8px;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    .left-col, .right-col {
        width: 100%;
        max-width: 100%;
    }

    .profile-body.hide-left .left-col {
        display: none;
    }
    .profile-body.hide-left .right-col {
        grid-column: 1 / -1;
    }

    .card {
        padding: 12px 14px;
        margin-bottom: 12px;
        width: 100%;
    }
    .card .card-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    .about-item .label {
        width: 80px;
        font-size: 0.8rem;
    }
    .about-item .value {
        font-size: 0.85rem;
    }

    .skill-item { margin-bottom: 12px; }
    .skill-header { font-size: 0.8rem; }
    .skill-nodes .node { font-size: 0.7rem; }

    .exp-item {
        padding: 8px 0;
        gap: 10px;
    }
    .exp-item .icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    .exp-item .content .title { font-size: 0.9rem; }
    .exp-item .content .sub { font-size: 0.8rem; }
    .exp-item .content .date { font-size: 0.7rem; }
    .exp-item .content .desc { font-size: 0.8rem; }

    .connections-tabs {
        padding: 6px 8px;
        gap: 4px;
    }
    .connections-tabs button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    .connection-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .connection-card .avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .modal-content {
        margin: 20% auto;
        padding: 16px;
        width: 95%;
        max-width: 95%;
    }
    .modal-content .close-modal {
        right: 12px;
        top: 8px;
        font-size: 1.5rem;
    }

    .top-nav {
        padding: 0 8px;
        height: 48px;
        overflow-x: auto;
    }
    .top-nav .nav-left .logo {
        font-size: 1rem;
        margin-right: 4px;
    }
    .top-nav .nav-left .logo span { display: none; }
    .top-nav .nav-left button {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    .top-nav .nav-left button span { display: none; }
    .top-nav .nav-right button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        padding: 4px 6px;
    }
    .top-nav .nav-right .avatar-btn {
        width: 32px;
        height: 32px;
    }
    .top-nav .nav-right .avatar-btn img {
        width: 26px;
        height: 26px;
    }
    .top-nav .dropdown-menu {
        min-width: 180px;
        right: -8px;
    }
    .top-nav .dropdown-menu a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .feed-header {
        padding: 10px 12px;
        gap: 4px;
        flex-wrap: wrap;
    }
    .feed-header button {
        font-size: 0.8rem;
        padding: 6px 8px;
        flex: 1 0 auto;
        min-width: 0;
    }

    .share-box {
        padding: 12px 14px;
        width: 100%;
    }
    .share-box .top {
        gap: 8px;
        flex-wrap: wrap;
    }
    .share-box .top .avatar {
        width: 32px;
        height: 32px;
    }
    .share-box .top input {
        font-size: 0.85rem;
        padding: 8px 12px;
        min-width: 0;
        flex: 1 1 100%;
    }
    .share-box .top .post-submit {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .share-box .bottom button {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .share-box .bottom button i {
        font-size: 0.9rem;
    }

    .feed-post {
        padding: 12px 14px;
        width: 100%;
    }
    .feed-post .post-header .avatar {
        width: 32px;
        height: 32px;
    }
    .feed-post .post-header .info .name { font-size: 0.9rem; }
    .feed-post .post-header .info .time { font-size: 0.7rem; }
    .feed-post .post-content { font-size: 0.85rem; }
    .feed-post .post-actions button {
        font-size: 0.8rem;
        padding: 2px 8px;
    }

    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .dashboard-grid .stat-card { padding: 12px; }
    .dashboard-grid .stat-card .value { font-size: 1.2rem; }
    .dashboard-grid .stat-card .label { font-size: 0.7rem; }

    .groups-list .group-item,
    .messages-list .msg-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .groups-list .group-item .icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .groups-list .group-item .info .name { font-size: 0.85rem; }
    .groups-list .group-item .info .desc { font-size: 0.75rem; }
    .messages-list .msg-item .avatar {
        width: 36px;
        height: 36px;
    }
    .messages-list .msg-item .content .from { font-size: 0.85rem; }
    .messages-list .msg-item .content .preview { font-size: 0.75rem; }
    .messages-list .msg-item .time { font-size: 0.65rem; }

    .mentoring-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .mentoring-header .role-toggle {
        justify-content: center;
    }
    .mentoring-stats {
        grid-template-columns: 1fr 1fr;
    }
    .mentoring-stat {
        padding: 12px 14px;
    }
    .mentoring-stat .stat-number {
        font-size: 1rem;
    }
    .mentoring-sub-tabs button {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .schedule-card {
        flex-direction: column;
        text-align: center;
    }
    .schedule-card .schedule-date {
        width: 100%;
    }
    .assignment-card {
        flex-direction: column;
        text-align: center;
    }
    .assignment-card .assignment-actions {
        justify-content: center;
        width: 100%;
    }
    .scores-grid {
        grid-template-columns: 1fr;
    }
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    .suggestion-card .footer .btn-sm {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .suggestion-card .footer .match-badge {
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .hiring-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .hiring-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hiring-tabs button {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .job-post-header {
        flex-direction: column;
        align-items: stretch;
    }
    .job-post-meta {
        text-align: left;
    }
    .applicant-card {
        flex-direction: column;
        align-items: stretch;
    }
    .applicant-actions {
        justify-content: flex-start;
        padding-top: 4px;
        border-top: 1px solid #e4e6eb;
    }
    .app-card-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .app-card-header .status-badge {
        margin-left: 0;
        align-self: center;
    }
    .job-board-filters {
        flex-direction: column;
    }
    .job-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    .job-card-meta {
        justify-content: flex-start;
    }
    .job-card-footer {
        justify-content: center;
    }
    .job-card-skills .match-badge {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .sidebar {
        width: 60px;
        padding: 8px 4px;
    }
    .sidebar .logo {
        font-size: 1rem;
        padding-bottom: 12px;
        margin-bottom: 8px;
    }
    .sidebar nav a { padding: 8px 0; }
    .sidebar nav a i { font-size: 1.1rem; }
    .sidebar .mini-profile .avatar {
        width: 30px;
        height: 30px;
    }

    .profile-info .avatar {
        width: 80px;
        height: 80px;
    }
    .profile-info .name-wrap h1 { font-size: 1.2rem; }
    .profile-info .name-wrap .headline { font-size: 0.8rem; }
    .profile-info .stats {
        font-size: 0.75rem;
        gap: 8px;
    }

    .tabs button {
        font-size: 0.65rem;
        padding: 8px 4px;
    }

    .card {
        padding: 10px 12px;
    }
    .about-item .label {
        width: 65px;
        font-size: 0.7rem;
    }
    .about-item .value {
        font-size: 0.8rem;
    }

    .share-box .bottom button {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    .share-box .bottom button i {
        font-size: 0.8rem;
    }

    .feed-header button {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    .modal-content {
        padding: 12px;
        margin: 10% auto;
    }
    .modal-content h2 { font-size: 1.2rem; }
    .modal-content h3 { font-size: 1rem; }

    .mentoring-stats {
        grid-template-columns: 1fr;
    }
    .mentoring-sub-tabs {
        justify-content: flex-start;
        padding: 4px 8px;
        gap: 2px;
        flex-wrap: nowrap;
    }
    .mentoring-sub-tabs button {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .mentoring-sub-tabs button i {
        font-size: 0.8rem;
    }
    .hiring-tabs button {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    .applicant-info {
        flex-wrap: wrap;
    }
    .applicant-match {
        width: 100%;
    }
    .match-bar {
        flex: 1;
    }
    .job-card-company img {
        width: 36px;
        height: 36px;
    }
    .job-card-title {
        font-size: 0.95rem;
    }
    .job-detail-modal .modal-content {
        padding: 16px;
    }
}