

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    padding-top: 70px; /* space for fixed header */
}

/* MAIN WRAPPER */
.main-wraper {
    display: flex;
    gap: 20px;
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

/* FEED COLUMN */
.feed-col {
    flex: 2;
}

/* RIGHT SIDEBAR */
.rightbar {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    height: fit-content;
}
/* ================================
   POST CARD (FEED & JOB VIEW)
================================ */
.post-jobs-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e1e8ed;
}

.post-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-content {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
}

/* CREATE POST BOX */
.create-post {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post-form textarea {
    width: 100%;
    height: 90px;
    resize: none;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
}

.post-form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.post-submit-btn {
    background: #0066ff;
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* POST CARD */
.post-card {
    
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    
}

/* HEADER INSIDE POST */
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.post-user-avatar {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.post-meta {
    font-size: 12px;
    color: #777;
}

/* POST MENU */
.post-menu-btn {
    margin-left: auto;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
}

.post-menu {
    display: none;
    position: absolute;
    top: 25px;
    right: 0;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    z-index: 20;
}

.post-menu button {
    width: 100%;
    padding: 6px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.post-content {
    margin-top: 12px;
    line-height: 1.4;
}

/* STATS ROW */
.post-stats {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
    display: flex;
    gap: 20px;
}

/* ACTION BUTTONS */
.post-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.action-btn.liked {
    background: #007bff;
    color: white;
}

/* SHARE DROPDOWN */
.share-dropdown {
    position: relative;
}

.share-options {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    min-width: 140px;
    z-index: 30;
}

.share-option {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
}

.share-option:last-child {
    border-bottom: none;
}

/* COMMENTS */
.comments-section {
    margin-top: 15px;
    display: none;
}

.comment-form textarea {
    width: 100%;
    height: 60px;
    resize: none;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.comment-submit-btn {
    margin-top: 8px;
    padding: 7px 14px;
    border: none;
    background: #0066ff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}
.job-card {
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    width: 95%;
    margin: 0 auto 15px;  /* centers the card */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .main-wraper {
        flex-direction: column;
    }

    .rightbar {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .post-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
/* PROFILE */
.profile-wrapper {
  position: relative;
}

.profile-avatar {
  width: 45px;
  height: 45px;
  background: #0073b1;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  font-size: 14px;
}

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

.profile-menu {
  position: absolute;
  top: 55px;
  right: 0;
  background: white;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
}

.profile-menu.hidden { display: none; }

.upload-btn {
  display: block;
  padding: 8px;
  color: #0073b1;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.upload-btn input { display: none;

/* =====================================
   JOBS COLUMN (second block)
===================================== */
.jobs-col .card {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e1e8ed;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.jobs-col h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.job-item {
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.job-item:last-child {
  border-bottom: none;
}

.job-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.job-item .meta {
  margin-top: 4px;
  font-size: 14px;
  color: #666;
}

.job-item p {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}

.link-btn {
  display: inline-block;
  margin-top: 8px;
  background: #007bff;
  color: #fff;
  padding: 7px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.link-btn:hover {
  background: #005fcc;
}


/* =====================================
   MOBILE FRIENDLY
===================================== */
@media (max-width: 600px) {

  .rightbar,
  .jobs-col .card {
    padding: 15px;
  }

  .job-card,
  .job-item {
    padding: 12px 0;
  }

  /* Make buttons full width on phones */
  .job-card a,
  .link-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 15px;
  }

  .job-title,
  .job-item h4 {
    font-size: 15px;
  }

  .job-company,
  .meta,
  .job-card p,
  .job-item p {
    font-size: 13px;
  }
  

