/* YellowPin job detail — content layout (header/footer unchanged) */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");



.yp-job-detail-page {

  --yp-jd-bg: #f7f9fd;

  --yp-jd-surface: #ffffff;

  --yp-jd-primary: #fabc57;

  --yp-jd-primary-container: #f8c04d;

  --yp-jd-on-primary-container:#fabc57;

  --yp-jd-text: #1c2136;

  --yp-jd-muted: #64748b;

  --yp-jd-variant: #4f4535;

  --yp-jd-border: #e6e8ec;

  --yp-jd-accent: #fff7e6;

  --yp-jd-success: #22c55e;

  --yp-jd-dark: #181c1f;

  font-family: "Inter", system-ui, sans-serif;

  background: var(--yp-jd-bg);

  color: var(--yp-jd-dark);

}



.yp-job-detail-page h1,

.yp-job-detail-page h2,

.yp-job-detail-page h3,

.yp-job-detail-page h4,

.yp-job-detail-page .yp-jd-font-display {

  font-family: "Montserrat", system-ui, sans-serif;

}



.yp-jd-page {

  max-width: 1280px;

  margin: 0 auto;

  padding: 32px 16px 48px;

}



@media (min-width: 768px) {

  .yp-jd-page {

    padding: 32px 40px 56px;

  }

}



.yp-jd-alert-wrap {

  max-width: 1280px;

  margin: 0 auto;

  padding: 16px 16px 0;

}



@media (min-width: 768px) {

  .yp-jd-alert-wrap {

    padding: 16px 40px 0;

  }

}



.yp-jd-loading {

  background: #e8f4fc;

  color: #0c5460;

  border-radius: 12px;

  padding: 14px 18px;

  margin: 0;

}



/* Hero */

.yp-jd-hero {

  background: var(--yp-jd-surface);

  border-radius: 12px;

  padding: 32px 24px;

  margin-bottom: 32px;

  border: 1px solid var(--yp-jd-border);

  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);

  position: relative;

  overflow: hidden;

}



@media (min-width: 768px) {

  .yp-jd-hero {

    padding: 48px;

  }

}



.yp-jd-hero::before {

  content: "";

  position: absolute;

  top: -80px;

  right: -80px;

  width: 256px;

  height: 256px;

  background: var(--yp-jd-accent);

  border-radius: 50%;

  opacity: 0.45;

  pointer-events: none;

}



.yp-jd-hero-inner {

  position: relative;

  z-index: 1;

  display: flex;

  flex-direction: column;

  gap: 24px;

}



@media (min-width: 768px) {

  .yp-jd-hero-inner {

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

  }

}



.yp-jd-hero-badges {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  margin-bottom: 12px;

}



.yp-jd-badge-new {

      display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fabc57;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;

}



.yp-jd-badge-new i {

  font-size: 12px;

}



.yp-jd-hero-posted {

  font-size: 14px;

  color: var(--yp-jd-muted);

}



.yp-jd-hero-title {

  font-size: 28px;

  font-weight: 700;

  color: var(--yp-jd-text);

  line-height: 1.2;

  margin: 0 0 16px;

}



@media (min-width: 768px) {

  .yp-jd-hero-title {

    font-size: 32px;

  }

}



.yp-jd-hero-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 20px 24px;

  font-size: 16px;

  font-weight: 500;

  color: var(--yp-jd-variant);

}



.yp-jd-hero-meta span {

  display: inline-flex;

  align-items: center;

  gap: 8px;

}



.yp-jd-hero-meta i {

  color: var(--yp-jd-primary);

}



.yp-jd-hero-actions {

  display: flex;

  flex-direction: column;

  gap: 12px;

  width: 100%;

}



@media (min-width: 576px) {

  .yp-jd-hero-actions {

    flex-direction: row;

  }

}



@media (min-width: 768px) {

  .yp-jd-hero-actions {

    width: auto;

    flex-shrink: 0;

  }

}



.yp-jd-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  font-weight: 700;

  font-size: 15px;

  border-radius: 12px;

  padding: 12px 28px;

  border: none;

  cursor: pointer;

  text-decoration: none;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;

  white-space: nowrap;

}



.yp-jd-btn:active {

  transform: scale(0.98);

}



.yp-jd-btn-primary {

  background: var(--yp-jd-primary-container);

  color: #000;

  box-shadow: 0 4px 12px rgba(250, 188, 87, 0.2);

}



.yp-jd-btn-primary:hover {

  box-shadow: 0 6px 16px rgba(250, 188, 87, 0.28);

  color: #000;

}



.yp-jd-btn-outline {

  background: transparent;

  color: #000;

  border: 2px solid var(--yp-jd-primary-container);

}



.yp-jd-btn-outline:hover {

  background: var(--yp-jd-accent);

  color: var(--yp-jd-on-primary-container);

}



.yp-jd-btn:disabled {

  opacity: 0.65;

  cursor: not-allowed;

  transform: none;

}



.yp-jd-owner-badge {

  font-size: 13px;

  font-weight: 600;

  padding: 14px 12px;

  border-radius: 8px;

  background: #6c757d;

  color: #fff;

 

    margin: auto;

}

.yp-jd-consultancy-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.35);
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.yp-jd-btn-icon {
  min-width: 48px;
  padding-left: 14px;
  padding-right: 14px;
}

.yp-jd-owner-menu {
  min-width: 180px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
}

.yp-jd-owner-menu .dropdown-item {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yp-jd-owner-menu .dropdown-item i {
  width: 16px;
  text-align: center;
}



/* Grid */

.yp-jd-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 32px;

  align-items: start;

}



@media (min-width: 992px) {

  .yp-jd-grid {

    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);

  }

}



.yp-jd-main-col {

  display: flex;

  flex-direction: column;

  gap: 32px;

}



.yp-jd-aside {

  display: flex;

  flex-direction: column;

  gap: 16px;

}



@media (min-width: 992px) {

  .yp-jd-aside {

    position: sticky;

    top: 100px;

  }

}



/* Cards */

.yp-jd-card {

  background: var(--yp-jd-surface);

  border-radius: 12px;

  padding: 32px;

  border: 1px solid var(--yp-jd-border);

  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);

}



.yp-jd-card-title {

  font-size: 24px;

  font-weight: 600;

  color: var(--yp-jd-text);

  margin: 0 0 24px;

  display: flex;

  align-items: center;

  gap: 12px;

}



.yp-jd-card-title-bar {

  width: 6px;

  height: 32px;

  background: var(--yp-jd-primary);

  border-radius: 4px;

  flex-shrink: 0;

}



.yp-jd-card-title-plain {

  font-size: 24px;

  font-weight: 600;

  color: var(--yp-jd-text);

  margin: 0 0 24px;

}



.yp-jd-desc {

  font-size: 16px;

  line-height: 1.65;

  color: var(--yp-jd-variant);

}



.yp-jd-desc p {

  margin-bottom: 1rem;

}



.yp-jd-desc p:last-child {

  margin-bottom: 0;

}

.yp-jd-desc strong,
.yp-jd-desc b {
  font-weight: 700 !important;
}

.yp-jd-desc em,
.yp-jd-desc i {
  font-style: italic !important;
}

.yp-jd-desc u {
  text-decoration: underline !important;
}

.yp-jd-desc ul,
.yp-rich-desc ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.yp-jd-desc ol,
.yp-rich-desc ol {
  list-style: decimal;
  padding-left: 1.35rem;
  margin: 0 0 1rem;
}

.yp-jd-desc li,
.yp-rich-desc li {
  margin-bottom: 0.35rem;
}

.yp-jd-desc a,
.yp-rich-desc a {
  color: #2563eb;
  text-decoration: underline;
}

.yp-jd-desc s,
.yp-jd-desc strike,
.yp-rich-desc s,
.yp-rich-desc strike {
  text-decoration: line-through;
}

.yp-jd-desc pre,
.yp-rich-desc pre {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.yp-jd-desc blockquote,
.yp-rich-desc blockquote {
  border-left: 3px solid #fabc57;
  padding-left: 14px;
  margin: 0 0 1rem;
  color: #475569;
}



.yp-jd-skills-heading {

  font-size: 14px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.06em;

  color: var(--yp-jd-text);

  margin: 32px 0 16px;

}



.yp-jd-skill-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.yp-jd-skill-tag {

  background: var(--yp-jd-primary);
  color: #000;

  font-weight: 600;

  font-size: 14px;

  padding: 8px 16px;

  border-radius: 8px;

  border: 1px solid rgba(250, 188, 87, 0.2);

}



/* Interview timeline */

.yp-jd-timeline {

  position: relative;

  padding-left: 0;

}



.yp-jd-timeline::before {

  content: "";

  position: absolute;

  left: 19px;

  top: 8px;

  bottom: 8px;

  width: 2px;

  background: var(--yp-jd-border);

}



.yp-jd-timeline-step {

  position: relative;

  display: flex;

  gap: 24px;

  margin-bottom: 32px;

}



.yp-jd-timeline-step:last-child {

  margin-bottom: 0;

}



.yp-jd-timeline-num {

  flex: none;

  width: 40px;

  height: 40px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 700;

  font-size: 15px;

  z-index: 1;

  background: #eceef2;

  color: var(--yp-jd-variant);

}



.yp-jd-timeline-num.is-active {

  background: var(--yp-jd-primary-container);

  color:#000;

}



.yp-jd-timeline-body h4 {

  font-size: 14px;

  font-weight: 600;

  color: var(--yp-jd-text);

  margin: 0 0 4px;

}



.yp-jd-timeline-body p {

  font-size: 14px;

  color: var(--yp-jd-variant);

  margin: 0;

  line-height: 1.5;

}



/* Map */

.yp-jd-map-card {

  padding: 0;

  overflow: hidden;

}



.yp-jd-map-head {

  padding: 32px 32px 12px;

}



.yp-jd-map-visual {

  height: 256px;

  width: 100%;

  background: linear-gradient(135deg, #eceef2 0%, #dde1fe 100%);

  position: relative;

}



.yp-jd-map-visual iframe {

  width: 100%;

  height: 100%;

  border: 0;

}



.yp-jd-map-overlay {

  position: absolute;

  bottom: 16px;

  right: 16px;

}



.yp-jd-map-overlay .yp-jd-btn-outline {

  background: var(--yp-jd-surface);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}



/* Sidebar cards */

.yp-jd-side-card {

  background: var(--yp-jd-surface);

  border-radius: 12px;

  padding: 24px;

  border: 1px solid var(--yp-jd-border);

  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);

}



.yp-jd-side-card h3 {

  font-size: 24px;

  font-weight: 600;

  color: var(--yp-jd-text);

  margin: 0 0 5px;

}



.yp-jd-snapshot {

  list-style: none;

  margin: 0;

  padding: 0;

}



.yp-jd-snapshot li {

  display: flex;

  align-items: flex-start;

  gap: 16px;

  margin-bottom: 16px;

}



.yp-jd-snapshot li:last-child {

  margin-bottom: 0;

}



.yp-jd-snapshot-icon {

  width: 40px;

  height: 40px;

  border-radius: 8px;

  background: var(--yp-jd-primary);

  color: #000;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  font-size: 18px;

}



.yp-jd-snapshot-label {

  font-size: 12px;

  color: var(--yp-jd-muted);

  margin: 0 0 10px;

  display: block;

}



.yp-jd-snapshot-value {

  font-size: 15px;

  font-weight: 500;

  color: var(--yp-jd-text);

  line-height:1.4em;

}



.yp-jd-snapshot-value.is-success {

  color: var(--yp-jd-success);

}



.yp-jd-contact-dark {

  background: var(--yp-jd-dark);

  color: #fff;

  border-color: var(--yp-jd-dark);

}



.yp-jd-contact-dark h3 {

  color: #fff;

}



.yp-jd-contact-dark p {

  color: #e0e3e6;

  font-size: 14px;

  margin-bottom: 7px;

}



.yp-jd-contact-person {

  display: flex;

  align-items: center;

  gap: 16px;

  margin-bottom: 24px;

}



.yp-jd-contact-avatar {

  width: 48px;

  height: 48px;

  border-radius: 50%;

  overflow: hidden;

  background: var(--yp-jd-primary-container);

  flex-shrink: 0;

}



.yp-jd-contact-avatar img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}



.yp-jd-contact-name {

  font-weight: 700;

  margin: 0;

}



.yp-jd-contact-role {

  font-size: 12px;

  color: #e0e3e6;

  margin: 0;

}



.yp-jd-contact-dark .yp-jd-btn-primary {

  width: 100%;

}



.yp-jd-side-muted {

  font-size: 14px;

  color: var(--yp-jd-muted);

  line-height: 1.5;

}



.yp-jd-side-actions {

  display: flex;

  flex-direction: column;

  gap: 12px;

  margin-top: 16px;

}



.yp-jd-side-actions .yp-jd-btn-outline {

  width: 100%;

}



/* Tags cloud (optional) */

.yp-jd-tag-pills {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

}



.yp-jd-tag-pill {

  background: #eceef2;

  color: var(--yp-jd-variant);

  font-size: 12px;

  font-weight: 500;

  padding: 4px 12px;

  border-radius: 999px;

  max-height:20px;

}



/* Related */

.yp-jd-related {

  margin-top: 32px;

}



.yp-jd-related-head {

  display: flex;

  flex-wrap: wrap;

  justify-content: space-between;

  align-items: flex-end;

  gap: 16px;

  margin-bottom: 15px;

}



.yp-jd-related-head h2 {

  font-size: 32px;

  font-weight: 700;

  color: var(--yp-jd-text);

  margin: 0;

}



.yp-jd-related-head p {

  color: var(--yp-jd-variant);

  margin: 8px 0 0;

  font-size: 16px;

}



.yp-jd-related-link {

  font-weight: 700;

  color: var(--yp-jd-primary);

  text-decoration: none;

  display: inline-flex;

  align-items: center;

  gap: 4px;

}



.yp-jd-related-link:hover {

  text-decoration: underline;

  color: var(--yp-jd-primary);

}



.yp-jd-related-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 24px;

}



@media (min-width: 768px) {

  .yp-jd-related-grid {

    grid-template-columns: repeat(3, 1fr);

  }

}



.yp-jd-related-card {

  background: var(--yp-jd-surface);

  padding: 24px;

  border-radius: 12px;

  border: 1px solid var(--yp-jd-border);

  box-shadow: 0 4px 20px rgba(28, 33, 54, 0.05);

  transition: border-color 0.2s ease;

  height: 100%;

  display: flex;

  flex-direction: column;

}



.yp-jd-related-card:hover {

  border-color: var(--yp-jd-primary-container);

}



.yp-jd-related-card h4 {

  font-size: 20px;

  font-weight: 600;

  margin: 0 0 4px;

}



.yp-jd-related-card h4 a {

  color: var(--yp-jd-text);

  text-decoration: none;

}



.yp-jd-related-card:hover h4 a {

  color: var(--yp-jd-primary);

}



.yp-jd-related-sub {

  font-size: 14px;

  color: var(--yp-jd-variant);

  margin-bottom: 16px;

}



.yp-jd-related-skills {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 24px;

  flex: 1;

}



.yp-jd-related-foot {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-top: 16px;

  border-top: 1px solid var(--yp-jd-border);

  margin-top: auto;

}



.yp-jd-related-salary {

  font-weight: 700;

  color: var(--yp-jd-text);

  font-size: 15px;

}



.yp-jd-related-view {

  font-weight: 700;

  font-size: 14px;

  color: var(--yp-jd-primary);

  text-decoration: none;

}



.yp-jd-related-view:hover {

  text-decoration: underline;

}



/* Bottom bars — keep existing behavior */

.yp-job-detail-page .job-seeker-bar,

.yp-job-detail-page .job-employer-bar {

  z-index: 40;

}



.yp-jd-institute-upload-zone {

  border: 1px dashed #d8cfc0;

  border-radius: 8px;

  padding: 28px 12px;

  background: #fff;

}



.yp-jd-institute-file-selected {

  padding: 12px;

  border-radius: 8px;

  border: 1px solid #d8cfc0;

  background: #f8f5ee;

}

