/* =====================================================
   FBR SOLUTIONS — SHARED INNER PAGES STYLES
   ===================================================== */

/* ---- PAGE HERO (sub-pages) ---- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,68,0.55);
  z-index: 1;
}
.page-hero-logo-bg {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.07;
  pointer-events: none;
}
.page-hero-logo-bg img {
  width: 480px;
  height: 480px;
  object-fit: contain;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  padding: 80px 24px;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}
.page-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--brand-accent); }
.breadcrumb i { font-size: 0.65rem; }
.breadcrumb span { color: var(--brand-accent); font-weight: 600; }

/* ---- TEAM PAGE ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.team-photo-wrap {
  position: relative;
  overflow: hidden;
}
.team-photo-placeholder {
  height: 280px;
  background: linear-gradient(135deg, #dce8f7 0%, #b8d0ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 5rem;
  opacity: 0.45;
  transition: background var(--transition);
}
.team-card:hover .team-photo-placeholder {
  background: linear-gradient(135deg, #c3d8f0 0%, #9abde5 100%);
}
.team-social-overlay {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,30,80,0.85), transparent);
  display: flex;
  gap: 10px;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.team-card:hover .team-social-overlay { transform: translateY(0); }
.team-social-overlay a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.team-social-overlay a:hover { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-navy); }
.team-info {
  padding: 22px 24px 26px;
}
.team-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-text);
  margin-bottom: 4px;
}
.team-title {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(0,87,184,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.team-info p {
  font-size: 0.875rem;
  color: var(--brand-muted);
  line-height: 1.7;
  margin: 0;
}

/* ---- CAREERS PAGE ---- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.perk-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.perk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.perk-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,87,184,0.08);
  color: var(--brand-blue);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.perk-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--brand-text); }
.perk-card p { font-size: 0.875rem; color: var(--brand-muted); line-height: 1.65; margin: 0; }

/* Jobs filter bar */
.jobs-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.jobs-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.jobs-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-muted);
  font-size: 0.9rem;
}
.jobs-search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid var(--brand-gray);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--brand-text);
  background: var(--brand-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.jobs-search-wrap input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.1);
}
.jobs-filter select {
  padding: 12px 36px 12px 16px;
  border: 1.5px solid var(--brand-gray);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--brand-text);
  background: var(--brand-white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color var(--transition);
}
.jobs-filter select:focus { border-color: var(--brand-blue); }

/* Job listing cards */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.jobs-loading {
  text-align: center;
  padding: 60px 0;
  color: var(--brand-muted);
  font-size: 1rem;
}
.jobs-loading i { margin-right: 8px; color: var(--brand-blue); }

.job-card {
  background: var(--brand-white);
  border: 1.5px solid var(--brand-gray);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}
.job-card-left { flex: 1; min-width: 0; }
.job-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 8px;
}
.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--brand-muted);
}
.job-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.job-card-meta i { color: var(--brand-blue); }
.job-type-badge {
  display: inline-block;
  background: rgba(0,87,184,0.08);
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}
.job-card-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.job-card-apply:hover {
  background: var(--brand-blue-dk);
  box-shadow: 0 4px 16px rgba(0,87,184,0.3);
}

.jobs-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--brand-muted);
}
.jobs-empty i { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.35; }
.jobs-empty h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--brand-text); }
.jobs-empty p { font-size: 0.9rem; }

/* ---- APPLICATION MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,31,68,0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--brand-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand-gray);
  color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: #e53e3e; color: #fff; }
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0,87,184,0.08);
  color: var(--brand-blue);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-text);
  margin-bottom: 6px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--brand-muted);
}
.modal-meta span { display: flex; align-items: center; gap: 5px; }
.modal-meta i { color: var(--brand-blue); }
.modal-job-desc {
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  background: var(--brand-light);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-blue);
}
.modal-divider {
  height: 1px;
  background: var(--brand-gray);
  margin: 24px 0;
}
.modal-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 20px;
}

/* Resume Upload */
.resume-upload-area {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.resume-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.resume-upload-ui {
  border: 2px dashed var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: rgba(0,87,184,0.03);
  transition: background var(--transition), border-color var(--transition);
}
.resume-upload-ui:hover,
.resume-upload-area:hover .resume-upload-ui {
  background: rgba(0,87,184,0.07);
  border-color: var(--brand-blue-dk);
}
.resume-upload-ui i { font-size: 2rem; color: var(--brand-blue); margin-bottom: 10px; }
.resume-upload-ui p { font-size: 0.9rem; color: var(--brand-text); margin: 0 0 4px; }
.upload-browse { color: var(--brand-blue); font-weight: 600; text-decoration: underline; }
.upload-hint { font-size: 0.78rem; color: var(--brand-muted); }

.resume-file-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,87,184,0.06);
  border: 1.5px solid var(--brand-blue);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--brand-text);
}
.resume-file-chosen i { color: var(--brand-blue); font-size: 1.2rem; }
.resume-file-chosen span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#resumeRemove {
  color: var(--brand-muted);
  font-size: 0.85rem;
  padding: 4px;
  transition: color var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}
#resumeRemove:hover { color: #e53e3e; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .job-card-apply { width: 100%; justify-content: center; }
  .modal-box { padding: 28px 20px; }
  .modal-header { flex-direction: column; }
  .page-hero-logo-bg img { width: 300px; height: 300px; }
  .jobs-filter { flex-direction: column; }
  .jobs-search-wrap { width: 100%; }
  .jobs-filter select { width: 100%; }
}
@media (max-width: 480px) {
  .perks-grid { grid-template-columns: 1fr; }
}
