/* ═══════════════════════════════════════════
   JOB DETAIL PAGE — job.css
   No slider — 10 Before + 10 After grid
   ═══════════════════════════════════════════ */

/* ─── JOB HERO ─── */
.job-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
  overflow: hidden;
}

.job-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.job-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.45);
}

.job-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.75) 100%
  );
}

.job-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 0 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Back Button */
.job-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  width: fit-content;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.job-back-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  text-decoration: none;
}

/* Hero Text */
.job-hero-badge {
  display: inline-block;
  background: #d4af37;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.job-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.job-hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* Hero Stats */
.job-hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.job-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.job-stat i {
  color: #d4af37;
  font-size: 0.85rem;
}

/* ─── PHOTO SECTIONS ─── */
.job-photos-section {
  padding: 60px 0;
}

.before-section {
  background: #ffffff;
}

.after-section {
  background: #f8f8f8;
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.before-badge {
  background: rgba(220, 60, 60, 0.08);
  color: #c0392b;
  border: 1px solid rgba(220, 60, 60, 0.2);
}

.after-badge {
  background: rgba(212, 175, 55, 0.1);
  color: #b8952a;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.before-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.title-underline {
  width: 50px;
  height: 3px;
  background: #c0392b;
  border-radius: 2px;
  margin: 0 auto 14px;
}

.title-underline-gold {
  background: #d4af37;
}

.section-subtitle {
  color: #888;
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── PHOTOS GRID ─── */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .photos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1200px) {
  .photos-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

/* Photo Item */
.photo-item {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}

.photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.3s ease;
}

.photo-item:hover .photo-wrap {
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-item:hover .photo-wrap img {
  transform: scale(1.07);
}

/* Photo hover overlay */
.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay i {
  color: #ffffff;
  font-size: 1.4rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay i {
  transform: scale(1);
}

/* Photo label */
.photo-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.after-label i {
  color: #d4af37;
  font-size: 0.6rem;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 95vw;
  max-height: 95vh;
  padding: 0 10px;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 80vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 80vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: opacity 0.2s ease;
}

.lightbox-loader {
  position: absolute;
  color: #d4af37;
  font-size: 1.8rem;
  display: none;
}

.lightbox-loader.show {
  display: block;
}

/* Lightbox buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #d4af37;
  border-color: #d4af37;
  color: #000;
}

.lightbox-close {
  position: absolute;
  top: -56px;
  right: 0;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ─── JOB NAV SECTION ─── */
.job-nav-section {
  background: #ffffff;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 24px 0;
}

.job-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.25s ease;
  min-width: 160px;
}

.job-nav-btn:hover {
  background: #d4af37;
  border-color: #d4af37;
  color: #000;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}

.job-nav-btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.job-nav-text {
  display: flex;
  flex-direction: column;
}

.job-nav-label {
  font-size: 0.68rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'Poppins', sans-serif;
}

.job-nav-btn:hover .job-nav-label {
  color: rgba(0,0,0,0.6);
}

.job-nav-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
}

.job-nav-btn:hover .job-nav-title {
  color: #000;
}

.job-nav-next {
  flex-direction: row-reverse;
  text-align: right;
}

.job-nav-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.job-nav-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.job-nav-home i {
  font-size: 1.1rem;
  color: #d4af37;
}

.job-nav-home:hover {
  background: #fffbf0;
  border-color: #d4af37;
  color: #b8952a;
  text-decoration: none;
}

/* ─── MOBILE ─── */
@media (max-width: 767px) {
  .job-photos-section { padding: 40px 0; }
  .photos-grid { gap: 10px; }
  .job-nav-row { flex-wrap: wrap; justify-content: center; }
  .job-nav-btn { min-width: 130px; padding: 12px 16px; }
  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-img-wrap img { max-width: 95vw; }
}

@media (max-width: 400px) {
  .photos-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}