/* =====================================================
   CAREERS PAGE - LIGHTBOX & JOB CARD IMPROVEMENTS
===================================================== */

/* -------------------------
   LIGHTBOX OVERLAY
------------------------- */
.bnb-job-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* semi-transparent overlay */
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 0;
    text-align: center;
}

/* LIGHTBOX CONTENT */
.bnb-job-lightbox-content {
    background: #fff;
    max-width: 1200px;   /* slightly narrower for overlay effect */
    width: 90%;          /* responsive */
    margin: 0 auto;
    padding: 2rem;
    border-radius: 10px;
    text-align: left;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* CLOSE BUTTON */
.bnb-lightbox-close {
    position: absolute;  /* inside lightbox content */
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

/* -------------------------
   JOB CARD GRID
------------------------- */
.bnb-job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.bnb-job-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bnb-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* JOB CARD CONTENT */
.bnb-job-thumb img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.bnb-job-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
.bnb-job-meta { font-size: 0.9rem; color: #777; margin-bottom: 0.5rem; }
.bnb-job-additional { font-size: 0.9rem; color: #555; margin-bottom: 0.5rem; }
.bnb-job-excerpt { font-size: 1rem; margin-bottom: 1rem; }


/* =====================================================
   LUXURY UNDERLINE ANIMATION – BRICK & GOLD
   Matches Home Page link style
===================================================== */

.bnb-job-readmore {
  color: #000; /* black by default */
  text-decoration: none;
  position: relative;
  font-weight: 700; /* bold */
  transition: color 0.3s ease;
}

.bnb-job-readmore::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 2px;
  background-color: #C9A45C; /* gold start */
  transition: all 0.3s ease;
}

.bnb-job-readmore:hover {
  color: #AA4A44; /* brick red on hover */
  font-weight: 700; /* stays bold */
}

.bnb-job-readmore:hover::after {
  width: 100%;
  background-color: #AA4A44; /* animate to brick red */
}


/* Submit button styling inside job form */
#bnb-careers .bnb-job-full form button,
.bnb-careers-page .bnb-job-full form button {
  background-color: #AA4A44 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#bnb-careers .bnb-job-full form button:hover,
.bnb-careers-page .bnb-job-full form button:hover {
  background-color: #8c3936 !important;
  transform: translateY(-2px);
}





/* -------------------------
   FORM INSIDE LIGHTBOX
------------------------- */
.bnb-job-full form input,
.bnb-job-full form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.bnb-job-full form button {
    background: #ff6600;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}
.bnb-job-full form button:hover {
    background: #e65c00;
}

.bnb-apply-success { color: green; margin-bottom: 1rem; }
.bnb-apply-error { color: red; margin-bottom: 1rem; }

/* -------------------------
   RESPONSIVE GRID
------------------------- */
@media (max-width: 1024px) {
    .bnb-job-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .bnb-job-grid { grid-template-columns: 1fr; }
    .bnb-job-lightbox-content { width: 95%; padding: 1.5rem; }
}

/* -------------------------
   LIGHTBOX SCROLL ON MOBILE
------------------------- */
.bnb-job-lightbox {
    -webkit-overflow-scrolling: touch;
}

/* -------------------------
   EXTRA TWEAKS
------------------------- */
.bnb-job-card p { margin: 0.5rem 0; }
.bnb-job-full h2 { margin-top: 2rem; margin-bottom: 1rem; }


/* ========== 17 October added ======== */

.bnb-file-label {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.9rem;
  color: #666;
}
.bnb-apply-success {
  color: #0a472e;
  background: #e3f8ef;
  border: 1px solid #b6e2c3;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}
.bnb-apply-error {
  color: #a10000;
  background: #fdecec;
  border: 1px solid #f4bcbc;
  border-radius: 0.5rem;
  padding: 0.75rem;
  text-align: center;
}
