/* toggle close */
.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    z-index: 10000;
}

/* Mobile view me hi show hoga */
@media (max-width: 768px) {
    .sidebar-close {
        display: block;
    }
}
/* Public Profile - Company CSS */
.ppc-container { max-width: 1400px; margin: 0 auto; padding: 0 24px 24px; }
.ppc-hero {
  background-color: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23e5e7eb' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-position: center;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}
.ppc-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid #22c55e;
  padding: 4px;
  background: #fff;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ppc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.ppc-name { font-size: 20px; font-weight: 700; color: #111827; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.ppc-verified { color: #3b82f6; font-size: 14px; }
.ppc-meta { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 12px; color: #6b7280; flex-wrap: wrap; }
.ppc-meta span { display: flex; align-items: center; gap: 6px; }

/* Tabs */
.ppc-tabs-wrap { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.ppc-tabs { display: flex; gap: 24px; overflow-x: auto; }
.ppc-tab { padding: 12px 0; font-size: 13px; font-weight: 600; color: #6b7280; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.ppc-tab:hover { color: #374151; }
.ppc-tab.active { color: #3b82f6; border-bottom-color: #3b82f6; }
.ppc-actions { display: flex; gap: 12px; padding-bottom: 12px; }
.ppc-actions .dropdown .dropdown-menu { left: auto !important; right: 0 !important; }
.ppc-btn-connect { background: #3b82f6; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ppc-btn-icon { background: #fff; border: 1px solid #e5e7eb; color: #374151; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }

/* Stats Bar */
.ppc-stats { display: flex; justify-content: space-around; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-bottom: 24px; flex-wrap: wrap; gap: 24px; }
.ppc-stat { text-align: center; border-right: 1px dashed #e5e7eb; flex: 1; min-width: 120px; }
.ppc-stat:last-child { border-right: none; }
.ppc-stat-val { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.ppc-stat-label { font-size: 11px; font-weight: 600; color: #6b7280; }

/* Layout Grid */
.ppc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
/* =======================================
   TABLET (max 1024px)
   ======================================= */
@media (max-width: 1024px) {
  .ppc-layout { grid-template-columns: 1fr; }
}

/* =======================================
   MOBILE (max 768px)
   ======================================= */
@media (max-width: 768px) {
  .ppc-container { padding: 0 12px 16px; }

  /* Hero */
  .ppc-hero { padding: 24px 16px; margin-top: 12px; margin-bottom: 16px; }
  .ppc-name { font-size: 17px; }
  .ppc-meta { gap: 8px 12px; font-size: 11px; }

  /* Tabs: scrollable row, actions below */
  .ppc-tabs-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: none;
    margin-bottom: 16px;
  }
  .ppc-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: none;
    padding-bottom: 0;
  }
  .ppc-tabs::-webkit-scrollbar { display: none; }
  .ppc-tab { font-size: 12px; padding: 10px 14px; flex-shrink: 0; }
  .ppc-actions { padding: 10px 0 4px; flex-wrap: wrap; gap: 8px; }

  /* Stats bar: 2 per row */
  .ppc-stats { padding: 16px 12px; gap: 12px; }
  .ppc-stat { min-width: calc(50% - 12px); border-right: none; border-bottom: 1px dashed #e5e7eb; padding-bottom: 12px; }
  .ppc-stat:nth-child(2n) { border-bottom: 1px dashed #e5e7eb; }
  .ppc-stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .ppc-stat-val { font-size: 17px; }

  /* Layout: single column */
  .ppc-layout { grid-template-columns: 1fr; gap: 0; }

  /* Cards */
  .ppc-card { border-radius: 10px; margin-bottom: 16px; }
  .ppc-card-header { padding: 14px 16px; }
  .ppc-card-body { padding: 0 16px 16px; }

  /* HQ map + info: stack */
  .ppc-hq-map { height: 130px; }
  .ppc-hq-info { grid-template-columns: 1fr; }

  /* Locations grid: 1 column */
  .ppc-loc-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Bottom grid: 1 column */
  .ppc-grid-2 { grid-template-columns: 1fr; gap: 0; }

  /* Pie chart container: stack */
  .ppc-pie-placeholder { flex-direction: column; gap: 16px; }

  /* Table */
  .ppc-table-wrap { -webkit-overflow-scrolling: touch; }
  .ppc-table { min-width: 420px; }
  .ppc-table th, .ppc-table td { padding: 10px 0; font-size: 11px; }
  .ppc-progress { width: 70px; }

  /* Section title spacing */
  .ppc-section-title { margin: 16px 0 12px; }
}

/* Very small phones (max 420px) */
@media (max-width: 420px) {
  .ppc-stat { min-width: 100%; border-right: none; border-bottom: 1px dashed #e5e7eb; }
  .ppc-stat:last-child { border-bottom: none; }
  .ppc-pie { width: 100px; height: 100px; }
  .ppc-pie::after { width: 50px; height: 50px; }
  .ppc-actions { justify-content: flex-start; }
}

/* Cards */
.ppc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 24px; }
.ppc-card-header { padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.ppc-card-title { font-size: 13px; font-weight: 700; color: #111827; }
.ppc-card-body { padding: 0 24px 24px; }

/* Highlights List */
.ppc-hl-row { display: flex; margin-bottom: 14px; font-size: 12px; }
.ppc-hl-row:last-child { margin-bottom: 0; }
.ppc-hl-label { width: 80px; color: #6b7280; flex-shrink: 0; }
.ppc-hl-val { color: #111827; font-weight: 500; }
.ppc-badge-active { background: #dcfce7; color: #166534; font-size: 9px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.ppc-link { color: #3b82f6; text-decoration: none; }

/* Jobs */
.ppc-job { display: flex; gap: 12px; margin-bottom: 16px; }
.ppc-job:last-child { margin-bottom: 0; }
.ppc-job-icon { width: 32px; height: 32px; border-radius: 6px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #6b7280; flex-shrink: 0; font-size: 14px; }
.ppc-job-info { flex: 1; }
.ppc-job-dept { font-size: 10px; font-weight: 700; color: #3b82f6; margin-bottom: 2px; }
.ppc-job-title { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 2px; }
.ppc-job-meta { font-size: 10px; color: #9ca3af; }

/* Network Links */
.ppc-net-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; color: #374151; font-weight: 500; }
.ppc-net-row:last-child { margin-bottom: 0; }
.ppc-net-row i { color: #9ca3af; width: 16px; text-align: center; }

/* Tags */
.ppc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ppc-tag { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 10px; font-size: 10px; font-weight: 600; color: #374151; }

/* Main Right Content */
.ppc-hq-map { height: 160px; background: #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 16px; overflow: hidden; }
.ppc-hq-map img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.ppc-hq-pin { position: absolute; background: #fff; padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.ppc-hq-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; color: #374151; }

.ppc-about-text { font-size: 12px; color: #6b7280; line-height: 1.6; margin-bottom: 20px; }
.ppc-section-title { font-size: 13px; font-weight: 700; color: #111827; margin: 24px 0 16px; }

/* Locations Grid */
.ppc-loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ppc-loc-card { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ppc-loc-img { height: 100px; background: #f3f4f6; }
.ppc-loc-img img { width: 100%; height: 100%; object-fit: cover; }
.ppc-loc-body { padding: 12px; }
.ppc-loc-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.ppc-loc-addr { font-size: 10px; color: #6b7280; line-height: 1.4; }

/* Projects Table */
.ppc-table-wrap { overflow-x: auto; }
.ppc-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.ppc-table th { text-align: left; padding: 12px 0; font-size: 11px; font-weight: 600; color: #6b7280; border-bottom: 1px dashed #e5e7eb; }
.ppc-table td { padding: 16px 0; border-bottom: 1px dashed #e5e7eb; font-size: 12px; color: #111827; font-weight: 500; }
.ppc-table tr:last-child td { border-bottom: none; }
.ppc-progress { width: 100px; height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; }
.ppc-progress-bar { height: 100%; }
.ppc-avatars { display: flex; }
.ppc-avatars img, .ppc-avatars span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.ppc-avatars img:first-child, .ppc-avatars span:first-child { margin-left: 0; }
.ppc-avatars span { background: #f3f4f6; color: #374151; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }

/* Grid 2 */
.ppc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }


.ppc-member { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ppc-member:last-child { margin-bottom: 0; }
.ppc-member img { width: 36px; height: 36px; border-radius: 50%; }
.ppc-member-info h5 { font-size: 12px; font-weight: 600; color: #111827; margin: 0 0 2px 0; }
.ppc-member-info p { font-size: 10px; color: #6b7280; margin: 0; }
.ppc-member-action { margin-left: auto; color: #3b82f6; cursor: pointer; }

.ppc-pie-placeholder { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 12px 0; }
.ppc-pie { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(#3b82f6 0% 30%, #ef4444 30% 55%, #22c55e 55% 75%, #f59e0b 75% 90%, #8b5cf6 90% 100%); position: relative; }
.ppc-pie::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: #fff; border-radius: 50%; }
.ppc-pie-legend { font-size: 11px; color: #374151; }
.ppc-pie-legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ppc-pie-legend-item span { width: 8px; height: 8px; border-radius: 50%; }

.ppc-link-center { display: block; text-align: center; font-size: 10px; font-weight: 700; color: #3b82f6; text-decoration: none; margin-top: 16px; text-transform: uppercase; }
