    :root {
      --navy: #143a5a;
      --blue: #1f5f94;
      --light-blue: #eaf3fb;
      --accent: #2f7dd1;
      --text: #1b2430;
      --muted: #5f6b7a;
      --white: #ffffff;
      --border: #d9e3ee;
      --bg: #f6f8fb;
      --shadow: 0 12px 30px rgba(20, 58, 90, 0.08);
      --radius: 18px;
      --max: 1200px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; width: 100%; height: auto; }

    .container {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .section {
      padding: 72px 0;
    }

    .section-title {
      font-size: clamp(1.9rem, 3vw, 2.8rem);
      line-height: 1.1;
      margin: 0 0 14px;
      color: var(--navy);
    }

    .section-copy {
      max-width: 1200px;
      color: var(--muted);
      font-size: 1.05rem;
      margin: 0 0 34px;
    }

    .eyebrow {
      color: var(--accent);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 0.8rem;
      margin-bottom: 14px;
    }

    .btn-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 22px;
      border-radius: 999px;
      font-weight: 700;
      border: 1px solid transparent;
      transition: 0.2s ease;
    }

    .btn.primary {
      background: var(--accent);
      color: white;
    }

    .btn.secondary {
      background: white;
      color: var(--navy);
      border-color: var(--border);
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 227, 238, 0.8);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav img {
  height: 55px;
  width: auto;
  display: block;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.nav-actions a:first-child {
  color: var(--navy);
  font-weight: 700;
}





    .brand {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--navy);
      letter-spacing: -0.02em;
    }

    .brand span {
      color: var(--accent);
    }

    .nav-links a {
      color: var(--muted);
      font-weight: 600;
    }

    .nav-actions a:first-child {
      color: var(--navy);
      font-weight: 700;
    }

    .hero {
      padding: 54px 0 42px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr;
      gap: 36px;
      align-items: center;
    }

    .hero h1 {
      font-size: clamp(2.6rem, 5vw, 4.6rem);
      line-height: 0.98;
      margin: 0 0 18px;
      color: var(--navy);
      letter-spacing: -0.04em;
    }

    .hero p {
      font-size: 1.1rem;
      color: var(--muted);
      max-width: 640px;
      margin: 0;
    }

    .hero-card {
      background: white;
      border-radius: 28px;
      overflow: hidden;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .hero-card img {
      height: 520px;
      object-fit: cover;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 28px;
    }

    .stat {
      background: white;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 18px;
      box-shadow: var(--shadow);
    }

    .stat strong {
      display: block;
      font-size: 1.6rem;
      color: var(--navy);
    }

    .stat span {
      color: var(--muted);
      font-size: 0.95rem;
    }

    .cards-3, .cards-4 {
      display: grid;
      gap: 22px;
    }

    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .cards-4 { grid-template-columns: repeat(4, 1fr); }

    .card {
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .card-body {
      padding: 22px;
    }

    .card h3 {
      margin: 0 0 10px;
      color: var(--navy);
      font-size: 1.2rem;
    }

    .card p {
      margin: 0;
      color: var(--muted);
    }

    .step-number {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--light-blue);
      color: var(--accent);
      display: grid;
      place-items: center;
      font-weight: 800;
      margin-bottom: 14px;
    }

    .image-top {
      height: 220px;
      object-fit: cover;
    }

    .trade-card {
      position: relative;
      min-height: 280px;
      display: flex;
      align-items: end;
      overflow: hidden;
    }

    .trade-card img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .trade-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(20,58,90,0.78), rgba(20,58,90,0.05));
    }

    .trade-card .label {
      position: relative;
      z-index: 1;
      color: white;
      font-size: 1.2rem;
      font-weight: 800;
      padding: 22px;
    }

    .profile-card img {
      height: 240px;
      object-fit: cover;
    }

    .pill {
      display: inline-block;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--light-blue);
      color: var(--accent);
      font-weight: 700;
      font-size: 0.85rem;
      margin-bottom: 12px;
    }

    .job-list {
      display: grid;
      gap: 18px;
    }

    .job-item {
      display: grid;
      grid-template-columns: 220px 1fr auto;
      gap: 22px;
      align-items: center;
      background: white;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .job-item img {
      width: 100%;
      height: 100%;
      min-height: 180px;
      object-fit: cover;
    }

    .job-content {
      padding: 24px 0;
    }

    .job-content h3 {
      margin: 0 0 8px;
      color: var(--navy);
      font-size: 1.35rem;
    }

    .job-meta {
      color: var(--muted);
      font-size: 0.95rem;
      margin-bottom: 12px;
    }

    .job-content p {
      margin: 0;
      color: var(--muted);
    }

    .job-action {
      padding: 24px;
    }

    .cta {
      background: linear-gradient(135deg, #10314c 0%, #1f5f94 100%);
      color: white;
      border-radius: 30px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .cta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: stretch;
    }

    .cta-copy {
      padding: 54px;
    }

    .cta-copy .eyebrow,
    .cta-copy .section-title,
    .cta-copy .section-copy {
      color: white;
    }

    .cta-image img {
      height: 100%;
      min-height: 380px;
      object-fit: cover;
    }

    footer {
      padding: 34px 0 46px;
      color: var(--muted);
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

    @media (max-width: 980px) {
      .hero-grid,
      .cta-grid,
      .cards-3,
      .cards-4,
      .job-item {
        grid-template-columns: 1fr;
      }

      .job-content,
      .job-action {
        padding: 0 22px 22px;
      }

      .job-item img {
        min-height: 220px;
      }

      .hero-card img {
        height: 360px;
      }

      .nav-links {
        display: none;
      }
    }

    @media (max-width: 640px) {
      .section { padding: 56px 0; }
      .stats { grid-template-columns: 1fr; }
      .cta-copy { padding: 34px 24px; }
      .nav-actions .btn { padding: 12px 16px; }
      .brand { font-size: 1.15rem; }
    }

    /* LOGO SIZE */
.nav img {
  height: 55px;
  width: auto;
}

.intro-section {
  margin-top: 10px;
  margin-bottom: 10px;
}

.intro-copy {
  max-width: 800px;
  font-size: 1.05rem;
  color: #444;
}

.trade-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.trade-btn {
  white-space: nowrap;
}

/* This pushes the button DOWN so it aligns with the cards */
.trade-btn {
  margin-top: 30px;
}

/* Mobile fix */
@media (max-width: 768px) {
  .trade-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-btn {
    margin-top: 10px;
  }
}

.intro-box {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 22px 26px;
  width: 100%; /* ensures full container width */
  box-shadow: var(--shadow);
}

.intro-box .section-copy {
  max-width: 100%; /* removes the 720px restriction */
  margin-bottom: 0; /* removes extra spacing at bottom */
}

.brand-highlight {
  color: var(--accent);
  font-weight: 600;
}

.trade-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
}

.footer-brand h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-column h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 0.95rem;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* DEFAULT (DESKTOP) */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* HIDE MOBILE MENU BY DEFAULT */
.mobile-menu {
  display: none;
  position: absolute;
  top: 78px; /* match header height */
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 100;
}

/* HIDE MOBILE MENU BY DEFAULT */
.mobile-menu {
  display: none;
}

/* MOBILE ONLY */
@media (max-width: 980px) {

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 20px;
    border-top: 1px solid #ddd;
    z-index: 100;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 14px 0;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

.mobile-actions {
  display: flex;
  flex-direction: column;
  align-items: center; /* keeps button centred */
  gap: 10px;
  margin-top: 15px;
}

.mobile-actions .btn {
  width: auto;              /* stops full width */
  padding: 10px 22px;      /* compact size */
  font-size: 0.95rem;
  border-radius: 999px;
  text-align: center;
  justify-content: center;
  display: inline-flex;     /* ensures proper centering */
}

/* LEFT ALIGN MENU LINKS */
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  text-align: left; /* 🔑 this fixes alignment */
}

}

/* HEADER POSITIONING */
header {
  position: relative;
}

/* CENTER TEXT */
.center {
  text-align: center;
}

/* CARD STYLE */
.signup-card {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* FORM SECTIONS */
.form-section {
  margin-bottom: 30px;
}

.form-section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* FORM LAYOUT */
.signup-form .form-row {
  display: flex;
  gap: 20px;
}

.signup-form .form-group {
  margin-bottom: 18px;
  flex: 1;
}

/* LABELS */
.signup-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

/* INPUTS */
.signup-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* INPUT FOCUS */
.signup-form input:focus {
  border-color: #2f6fed;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,111,237,0.1);
}

/* CHECKBOX */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #555;
}

.checkbox-group input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #2f6fed;
}

/* BUTTON */
.btn.large {
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
}

.full-width {
  width: 100%;
}

.section + .signup-section {
  margin-top: -40px;
}

.signup-hero {
  padding: 40px 0 10px;
}

.signup-section {
  margin-top: -50px;
}

.user-greeting {
  margin-right: 10px;
  font-weight: 500;
  color: #333;
}

.nav-actions a:not(.btn) {
  margin-right: 10px;
  font-weight: 500;
  color: #333;
}

/* BIO FIELD */
.signup-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.signup-form textarea:focus {
  border-color: #2f6fed;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}

/* PREVIOUS WORK ENTRIES */
.job-entry {
  display: grid;
  grid-template-columns: 1fr 1fr 110px;
  gap: 12px;
  margin-bottom: 14px;
}

/* SPACE ABOVE ADD ANOTHER JOB BUTTON */
#jobs-container {
  margin-bottom: 18px;
}

/* MOBILE FRIENDLY */
@media (max-width: 768px) {
  .job-entry {
    grid-template-columns: 1fr;
  }
}

.profile-image-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents stretching */
  border-radius: 50%;
  border: 3px solid #eee;
  display: block;
}

.profile-image-wrapper img {
  max-width: 100px;
  max-height: 100px;
}
.signup-card .profile-image-section {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.profile-image-section {
  text-align: center;
  margin-bottom: 24px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.profile-image-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid #eee;
}

.upload-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1f4f7a;
  cursor: pointer;
}

#profile_image {
  display: block;
  margin: 0 auto;
}

.profile-page {
  padding-top: 50px;
}

.profile-card {
  width: 100%;
  padding: 40px 50px; /* top/bottom | left/right */
  max-width: 1200px; /* match container */
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

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

  border-radius: 16px;
  border: none; /* removes outline */
  box-shadow: var(--shadow); /* subtle lift */
}

.profile-avatar {
  width: 300px;
  height: 110px;
}

.profile-intro h1 {
  margin-bottom: 10px;
}

.profile-link a {
  color: #2f6fed;
  font-weight: 600;
  text-decoration: none;
}

.profile-link a:hover {
  text-decoration: underline;
}

.profile-section {
  margin-top: 30px;
}

.profile-bio {
  line-height: 1.7;
  color: #444;
}

.profile-jobs {
  display: grid;
  gap: 16px;
  margin-top: 15px;
}

.profile-job-card {
  padding: 18px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
}

.profile-job-card h4 {
  margin: 0 0 6px;
  color: #163a63;
}

.profile-job-card p {
  margin: 0 0 6px;
  color: #555;
}

.profile-job-card span {
  font-size: 14px;
  font-weight: 600;
  color: #2f6fed;
}

@media (max-width: 768px) {
  .profile-card {
    padding: 24px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-avatar {
    width: 90px;
    height: 90px;
  }
}

.signup-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.signup-form select:focus {
  border-color: #2f6fed;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,111,237,0.1);
}

.profile-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.profile-card-link .profile-card {
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card-link:hover .profile-card {
  transform: translateY(-4px);
}

.profile-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* PROFILE CARD FIX (USES ORIGINAL .card STYLE) */

.profile-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image sits flush at top */
.profile-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Clean spacing */
.profile-card .card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Button alignment */
.profile-card .btn-row {
  margin-top: 20px;
}

/* Hover effect (optional but matches your site) */
.profile-card-link:hover .profile-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .profile-card .card-body {
    padding: 22px;
  }

  .profile-card h3 {
    font-size: 22px;
  }
}

.profile-link img {
  max-width: 220px; /* adjust size */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-link img:hover {
  transform: scale(1.03);
}

.profile-jobs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
}

/* Each row */
.profile-job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  padding: 14px 18px;
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  background: #fafbfd;

  flex-wrap: nowrap; /* 🔑 prevents wrapping */
}

/* LEFT SIDE */
.job-main {
  font-weight: 600;
  color: #163a63;
  font-size: 15px;

  white-space: nowrap;      /* 🔑 keeps text on one line */
  overflow: hidden;
  text-overflow: ellipsis;  /* adds ... if too long */
}

/* RIGHT SIDE */
.job-year {
  font-size: 14px;
  font-weight: 600;
  color: #2f6fed;

  flex-shrink: 0; /* 🔑 stops year dropping below */
}

.profile-card {
  padding: 40px 50px !important;
}

/* PROFILE CARDS (INDEX FIX) */
.cards-3 .profile-card {
  overflow: hidden;
  padding: 0 !important; /* ensures image touches edges */
  display: flex;
  flex-direction: column;
}

/* Image full width */
.cards-3 .profile-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Content spacing */
.cards-3 .profile-card .card-body {
  padding: 20px;
}

@media (max-width: 768px) {

  /* Stack layout vertically */
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Make image full width */
  .profile-avatar {
    width: 100%;
    height: auto;
  }

  .profile-avatar img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
  }

  /* Space between image and text */
  .profile-intro {
    margin-top: 20px;
  }

  /* Optional: center text nicely */
  .profile-intro h1 {
    text-align: left;
  }

  /* IMDb image responsive */
  .profile-link img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔑 4 per row */
  gap: 12px;
  margin-top: 15px;
}

/* Each thumbnail */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 50%;
  text-decoration: none;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.delete-btn::before,
.delete-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
}

.delete-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.delete-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.delete-btn:hover {
  background: #e53935;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .gallery-preview {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 25, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 85vh;

  width: auto;
  height: auto;

  object-fit: contain;
}

/* CLOSE */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

/* NAV BUTTONS */
.lightbox-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 6px;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

.lightbox-controls button:hover {
  background: rgba(255,255,255,0.2);
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.profile-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;   /* 🔑 makes them square thumbnails */
  object-fit: cover;     /* 🔑 prevents stretching */
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .profile-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* NAME */
.profile-name {
  margin-bottom: 20px;
}

/* HEADER LAYOUT */
.profile-header {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* IMAGE */
.profile-avatar {
  flex: 0 0 220px;
}

.profile-avatar img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* CONTACT */
.profile-contact {
  flex: 1;
}

.profile-email {
  font-size: 16px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
  }

  .profile-avatar {
    width: 100%;
  }
}

.profile-contact .form-section-title {
  margin-top: 20px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.page-link {
  padding: 6px 12px;
  background: #eee;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.page-link:hover {
  background: #ddd;
}

.page-link.active {
  background: #111;
  color: #fff;
}

.profile-mobile {
  margin-top: 6px;
  font-size: 15px;
  color: #555;
}

.profile-mobile a {
  color: inherit;
  text-decoration: none;
}

.profile-mobile a:hover {
  text-decoration: underline;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px 0;
}

.profile-contact-item .icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0077cc;
}

.profile-contact-item .icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-contact-item a,
.profile-contact-item span.contact-text {
  display: inline-block;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
}

.profile-contact-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  /* Stack layout vertically */
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Centre the name */
  .profile-name {
    text-align: center;
  }

  /* Centre the image */
  .profile-avatar {
    margin-bottom: 20px;
  }

  .profile-avatar img {
    margin: 0 auto;
    display: block;
  }

  /* Centre contact section */
  .profile-contact {
    width: 100%;
    text-align: center;
  }

  /* Centre each contact row */
  .profile-contact-item {
    justify-content: center;
  }

  /* Centre locked box */
  .contact-locked {
    text-align: center;
  }

  /* Optional: centre IMDb */
  .profile-link {
    display: flex;
    justify-content: center;
    margin-top: 15px;
  }

}

.availability-status {
  margin-top: 10px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
}

.availability-status.available {
  background: #e6f7ed;
  color: #1a7f37;
}

.availability-status.unavailable {
  background: #fdecea;
  color: #b42318;
}

.availability-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap; /* prevents breaking on small screens */
}

/* Make inputs sit nicely side by side */
.availability-entry input[type="date"] {
  flex: 1;
  min-width: 140px;
}

/* "to" text */
.date-separator {
  font-size: 14px;
  color: #666;
}

/* Push delete button to far right */
.remove-btn {
  margin-left: auto;
  background: #f44336;
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* Hover */
.remove-btn:hover {
  background: #d32f2f;
}

@media (max-width: 600px) {
  .availability-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .remove-btn {
    margin-left: 0;
    align-self: flex-end;
  }
}

.availability-entry span {
  font-size: 14px;
  color: #666;
}

.availability-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.remove-btn {
  background: #f44336;
  color: #fff;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}

.remove-btn:hover {
  background: #d32f2f;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

/* Keep status on one line */
.availability-status {
  white-space: nowrap;
}

/* Mobile fix */
@media (max-width: 768px) {
  .profile-title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.form-help {
  color: #fa0000;
}  

.filter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-form select {
  padding: 8px;
  min-width: 180px;
}

.crew-filters {
  margin-top: 20px;
  margin-bottom: 20px;
}

.filter-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.crew-filter-section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.filter-form {
  margin: 0; /* remove any default form spacing */
}

.pagination {
  margin-top: 30px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.page-link {
  padding: 8px 12px;
  border-radius: 6px;
  background: #f1f3f5;
  text-decoration: none;
  color: #333;
}

.page-link.active {
  background: #2f6fed;
  color: white;
}

#company-field {
  transition: all 0.3s ease;
}

.production-btn-row {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.company-name {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f3c5b; /* or your brand dark */
  margin-bottom: 10px;
}

/* Positions row layout */
.position-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Make dropdown take most space */
.position-row select {
    flex: 1;
}

/* Keep qty small and neat */
.position-row input[type="number"] {
    width: 80px;
}

.btn.danger {
    background: #e74c3c;
    color: #fff;
}

/* Positions styling */
.job-positions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.position-pill {
  background: #f1f3f5;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
}

/* META ROW */
.job-meta {
  display: flex;
  gap: 15px;
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

/* INDIVIDUAL META ITEM */
.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* POSITIONS */
.job-positions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* PILLS */
.position-pill {
  background: #eef2f7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
}

.positions-label {
  color: #000;
  font-weight: 600;
  margin-bottom: 6px;
}

.job-new {
  background: #28a745;
  color: #fff;
}

.job-type {
  background: #eee;
  color: #333;
}

.production-name {
  font-weight: 600;
}

.production-location {
  font-weight: 400;
  opacity: 0.8;
}

.separator {
  opacity: 0.5;
}

/* SECTION BACKGROUND */
.job-detail-section {
  background: #f5f5f5;
  padding-top: 0;
}

/* WHITE CARD */
.job-card {
  background: #ffffff;
  max-width: 800px;
  margin: -80px auto 0 auto; /* pulls card up over image */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* META */
.job-meta {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* POSITIONS */
.job-positions {
  margin-top: 20px;
}

/* APPLY BUTTON */
.job-apply {
  margin-top: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .job-card {
    margin-top: -40px;
    padding: 20px;
  }
}

.hero-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section behind card */
.job-detail-section {
  background: #f5f5f5;
  padding-top: 120px;
}

/* WHITE CARD */
.job-card {
  background: #ffffff;
  max-width: 800px;
  margin: -120px auto 0 auto; /* pulls card over image */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* =========================
   MOBILE RESPONSIVE FIXES
========================= */
@media (max-width: 768px) {

  /* HERO IMAGE */
  .hero-image {
    height: 220px;
  }

  /* CARD */
  .job-card {
    margin: -60px 15px 0 15px; /* less overlap + side padding */
    padding: 20px;
    border-radius: 10px;
  }

  /* TITLE */
  .section-title {
    font-size: 24px;
    line-height: 1.3;
  }

  /* PRODUCTION LINE */
  .job-production {
    font-size: 14px;
    margin-top: 5px;
  }

  /* META */
  .job-meta {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }

  /* POSITIONS */
  .job-positions {
    margin-top: 15px;
  }

  .position-pill {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
  }

  /* APPLY BUTTON */
  .job-apply {
    margin-top: 25px;
  }

  .btn.primary {
    width: 100%;
    text-align: center;
  }

}

/* =========================
   JOB LIST MOBILE FIX
========================= */
@media (max-width: 768px) {

  /* STACK JOB CARD */
  .job-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  }

  /* IMAGE FULL WIDTH */
  .job-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  /* CONTENT */
  .job-content {
    padding: 15px;
  }

  /* TITLE */
  .job-title {
    font-size: 18px;
    line-height: 1.3;
  }

  /* PRODUCTION LINE */
  .job-production {
    font-size: 14px;
    margin-top: 4px;
  }

  /* META STACK */
  .job-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-top: 8px;
  }

  /* POSITIONS */
  .job-positions {
    margin-top: 12px;
  }

  .positions-label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .position-pill {
    font-size: 12px;
    margin-bottom: 5px;
    display: inline-block;
  }

  /* BUTTON FULL WIDTH */
  .job-action {
    padding: 0 15px 15px 15px;
  }

  .job-action .btn {
    width: 100%;
    text-align: center;
  }

}

.success-message {
  text-align: center;
  color: #155724;
  background: #d4edda;
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
}

.error-message {
  text-align: center;
  color: #ed0505;
  background: #d4edda;
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
}

.applicant-count {
  display: inline-block;
  background: #f1f1f1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* =========================
   DASHBOARD CARDS (SAFE)
========================= */

.dashboard-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.dashboard-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dashboard-description {
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ACTION ROW */
.dashboard-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Equal width buttons */
.dashboard-actions .btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  line-height: 1;
}
.dashboard-count {
  text-align: center;
}

/* Applicant count box */
.dashboard-count {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  border-radius: 999px;
  font-size: 14px;
  padding: 10px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    flex-direction: column;
  }
}

/* TOP ROW */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* APPLICANT PILL (blue highlight) */
.applicants-pill {
  background: var(--accent);
  color: #fff;
}

/* ACTIONS (cleaner layout now) */
.dashboard-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.dashboard-actions .btn {
  flex: 1;
  text-align: center;
}

.job-date {
  display: block;
  margin-top: 5px;
  margin-bottom: 15px; /* 👈 this creates the space you want */
}

/* Card spacing */
.applicant-card {
  display: flex;
  flex-direction: column;
}

/* Name */
.applicant-name {
  margin-bottom: 10px;
}

/* Role */
.applicant-role {
  margin-bottom: 12px;
  color: #666;
}

/* Position */
.applicant-position {
  margin-bottom: 12px;
}

/* Message label */
.applicant-label {
  margin-bottom: 5px;
}

/* Message content */
.applicant-message {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Button spacing */
.applicant-action {
  margin-top: auto;
}

/* =========================
   APPLICANTS FIX (OVERRIDE)
========================= */

.applicant-card p {
  margin-bottom: 12px !important;
}

.applicant-card .applicant-label {
  margin-bottom: 6px !important;
}

.applicant-card .applicant-message {
  margin-bottom: 18px !important;
  line-height: 1.5;
}

.applicant-card h3 {
  margin-bottom: 10px !important;
}

/* FIX BUTTON HEIGHTS IN APPLICANT CARD */
.applicant-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;          /* 🔑 forces equal height */
  padding: 0 16px;       /* remove vertical padding */
  text-align: center;
  line-height: 1.2;
}

/* Ensure button container behaves properly */
.applicant-card form {
  display: flex;
}

/* ACCEPT BUTTON (GREEN) */
.btn.accept {
  background: #28a745;
  color: #fff;
  border: none;
}

.btn.accept:hover {
  background: #218838;
}

/* NOT SUITABLE (SUBTLE GREY/RED) */
.btn.decline {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f1aeb5;
}

.btn.decline:hover {
  background: #f1aeb5;
}

/* STATUS BADGES */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* STATES */
.status-pending {
  background: #eef2f7;
  color: #2c3e50;
}

.status-accepted {
  background: #e6f7ed;
  color: #1a7f37;
}

.status-declined {
  background: #fdecea;
  color: #b42318;
}

/* =========================
   MY APPLICATIONS (CARD POLISH)
========================= */

/* Status badge spacing */
.profile-card .status-badge {
  margin-bottom: 8px;
}

/* Ensure consistent card height + spacing */
.profile-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push button to bottom for clean layout */
.profile-card .card-body .btn {
  margin-top: auto;
}

/* Small improvement for job meta spacing */
.profile-card p {
  margin-bottom: 10px;
}

/* Improve hierarchy */
.profile-card h3 {
  margin-bottom: 8px;
}

/* Make "View Job" button consistent height */
.profile-card .btn.secondary {
  height: 44px;
  padding: 0 18px;
}


/* =========================
   FIX SIDE-BY-SIDE LAYOUT
========================= */

.profile-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* LEFT FORM */
.profile-layout .signup-card {
  flex: 0 0 70%;   /* force width */
  max-width: 70%;
  margin: 0;       /* remove centering */
}

/* RIGHT CARD */
.profile-side-card {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 260px;

  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* MOBILE STACK */
@media (max-width: 991px) {
  .profile-layout {
    flex-direction: column;
  }

  .profile-layout .signup-card,
  .profile-side-card {
    max-width: 100%;
    flex: 100%;
  }
}

.status {
  font-size: 13px;
  margin-top: 4px;
}

/* Optional colours */
.status-pending { color: #f59e0b; }      /* orange */
.status-accepted { color: #16a34a; }     /* green */
.status-rejected { color: #dc2626; }     /* red */

.my-job-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

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

.my-job-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.my-job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--light-blue);
  transition: all 0.2s ease;
}

.my-job-item-link:hover .my-job-item {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.job-arrow {
  font-size: 18px;
  color: var(--muted);
}

.btn.danger {
  background: #dc2626;
  color: #fff;
}

.btn.danger:hover {
  background: #b91c1c;
}

.footer-logo {
  margin-top: 15px;
  max-width: 160px;
  height: auto;
  display: block;
}

.location-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.upload-progress {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-top: 10px;
  overflow: hidden;
}

#uploadBar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}


