/* =============================================================
   SB FLYING SERVICES — public.css  (Careerfy Style)
   ============================================================= */

.public-page { overflow-x: hidden; }

/* ── HEADER — WHITE like Careerfy ────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.hdr-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; gap: 0;
}

/* Logo */
.hdr-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; margin-right: 44px; }
.hdr-logo-img { height: 58px; width: auto; object-fit: contain; }
.logo-sb   { font-family: 'Playfair Display',serif; font-size: 22px; font-weight: 700; color: #1a2e4a; }
.logo-flying { font-family: 'Playfair Display',serif; font-size: 22px; font-weight: 700; color: #c8970a; }
.logo-services { font-family: 'Sora',sans-serif; font-size: 10px; font-weight: 600; color: #9ca3af; letter-spacing: .1em; text-transform: uppercase; align-self: flex-end; margin-bottom: 4px; margin-left: 5px; }

/* Desktop nav */
.hdr-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; padding: 8px 14px; border-radius: 6px; transition: color .2s, background .2s; white-space: nowrap; }
.nav-link:hover { color: #c8970a; }
.nav-link.active { color: #c8970a; font-weight: 600; }

/* Right actions */
.hdr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr-btn { display: inline-flex; align-items: center; gap: 7px; font-family: 'Sora',sans-serif; font-size: 14px; font-weight: 500; padding: 8px 20px; border-radius: 6px; text-decoration: none; transition: all .2s; white-space: nowrap; border: none; cursor: pointer; }
.hdr-btn-signin { color: #374151; border: 1.5px solid #d1d5db; background: transparent; }
.hdr-btn-signin:hover { border-color: #c8970a; color: #c8970a; }
.hdr-btn-register { background: #c8970a; color: #fff; font-weight: 600; }
.hdr-btn-register:hover { background: #b8870a; color: #fff; }
.hdr-btn-dash { background: #f0f2f8; color: #1a2e4a; font-size: 13px; padding: 7px 14px; border: 1px solid #e5e7eb; }
.hdr-btn-dash:hover { background: #e5e9f5; color: #1a2e4a; }

/* User dropdown */
.hdr-user-wrap { position: relative; }
.hdr-user-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1.5px solid #d1d5db; border-radius: 8px; padding: 6px 12px; cursor: pointer; transition: all .2s; font-family: 'Sora',sans-serif; }
.hdr-user-btn:hover { border-color: #c8970a; }
.hdr-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#c8970a,#e6b020); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.hdr-user-name { font-size: 13px; font-weight: 500; color: #374151; }
.hdr-user-btn svg { color: #9ca3af; transition: transform .2s; }
.hdr-user-btn.open svg { transform: rotate(180deg); }
.hdr-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 12px; min-width: 200px; box-shadow: 0 12px 32px rgba(0,0,0,.15); border: 1px solid #e5e7eb; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s; z-index: 200; }
.hdr-user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.hdr-dropdown-header { padding: 14px 16px 10px; border-bottom: 1px solid #f0f0f0; }
.hdr-dropdown-name { font-size: 13.5px; font-weight: 600; color: #1a2e4a; }
.hdr-dropdown-role { font-size: 11px; color: #9ca3af; margin-top: 2px; text-transform: capitalize; }
.hdr-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: #374151; text-decoration: none; transition: background .15s; }
.hdr-dropdown-item:hover { background: #f9fafb; color: #1a2e4a; }
.hdr-dropdown-item svg { color: #9ca3af; flex-shrink: 0; }
.hdr-dropdown-divider { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }
.hdr-dropdown-logout { color: #dc2626 !important; }
.hdr-dropdown-logout svg { color: #dc2626 !important; }
.hdr-dropdown-logout:hover { background: #fff1f2 !important; }

/* Notification bell */
.hdr-notif-btn { width: 36px; height: 36px; border-radius: 8px; border: 1.5px solid #d1d5db; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; transition: border-color .2s; }
.hdr-notif-btn:hover { border-color: #c8970a; }
.hdr-notif-btn svg { width: 16px; height: 16px; color: #6b7280; }
.hdr-notif-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; background: #dc2626; border-radius: 50%; border: 1.5px solid #fff; }

/* Hamburger */
.hdr-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 38px; height: 38px; background: transparent; border: 1.5px solid #d1d5db; border-radius: 7px; cursor: pointer; padding: 0; flex-shrink: 0; }
.hdr-hamburger span { display: block; width: 18px; height: 2px; background: #374151; border-radius: 2px; transition: transform .3s, opacity .3s, width .3s; }
.hdr-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hdr-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.hdr-mobile-menu { position: fixed; top: 70px; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; z-index: 999; max-height: calc(100vh - 70px); overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.hdr-mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav { padding: 10px 0 16px; }
.mobile-nav-link { display: flex; align-items: center; padding: 13px 24px; font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; border-bottom: 1px solid #f5f5f5; transition: background .2s, color .2s; }
.mobile-nav-link:hover { background: #fafafa; color: #c8970a; }
.mobile-nav-highlight { color: #c8970a !important; font-weight: 600; }
.mobile-nav-logout { color: #dc2626 !important; }
.mobile-nav-divider { border: none; border-top: 2px solid #f0f0f0; margin: 6px 0; }
.mobile-nav-whatsapp { display: flex; align-items: center; gap: 10px; margin: 12px 20px 0; padding: 12px 18px; background: #25d366; color: #fff; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; }

.hdr-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.hdr-overlay.open { opacity: 1; visibility: visible; }

.public-page { padding-top: 70px; }


/* ── FOOTER ── */
.site-footer { background: #1a2e4a; font-family: 'Sora',sans-serif; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-main { padding: 56px 0 40px; }
.footer-main .footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-logo-badge { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; margin-bottom: 14px; }
.footer-legal-ids { display: flex; flex-direction: column; gap: 3px; margin-bottom: 16px; }
.footer-legal-ids span { font-size: 10.5px; color: rgba(255,255,255,.22); font-family: 'Courier New',monospace; }
.footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: opacity .2s; }
.footer-social-btn:hover { opacity: .85; }
.footer-social-wa { background: #25d366; color: #fff; }
.footer-social-call { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.footer-col-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.footer-link:hover { color: #c8970a; }
.footer-link-inline { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-link-inline:hover { color: #c8970a; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,.4); margin-bottom: 10px; line-height: 1.5; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.25); }
.footer-legal-links { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: rgba(255,255,255,.25); }
.footer-entities { border-top: 1px solid rgba(255,255,255,.06); padding: 14px 0; }
.footer-entities .footer-inner { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-entity { display: flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255,255,255,.25); font-family: 'Courier New',monospace; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,.2); }
.footer-cert-text { font-family: 'Courier New',monospace; }

/* Floating WhatsApp */
.float-wa { position: fixed; bottom: 24px; right: 24px; z-index: 900; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.float-wa:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.5); }


/* ── JOBS PAGE ── */
.jobs-page-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.jobs-page-title { font-family: 'Playfair Display',serif; font-size: 32px; font-weight: 700; color: #1a2e4a; margin-bottom: 6px; }
.jobs-page-sub { font-size: 14px; color: #6b7280; }
.jobs-filter-bar { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; margin-bottom: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.jobs-filter-bar label { font-size: 11px; font-weight: 600; color: #6b7280; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 18px; }
.job-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; transition: all .25s; display: flex; flex-direction: column; position: relative; overflow: visible; }
.job-card:hover { border-color: #c8970a; box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.job-card-flag { font-size: 32px; margin-bottom: 12px; }
.job-card-title { font-family: 'Playfair Display',serif; font-size: 16px; font-weight: 700; color: #1a2e4a; margin-bottom: 4px; }
.job-card-dest { font-size: 12.5px; color: #6b7280; margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.job-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.job-card-desc { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 16px; flex: 1; }
/* Boarding-pass perforation: a dashed tear line with punched notches, echoing the brand's own name */
.job-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; position: relative; border-top: 2px dashed #e0e4ec; }
.job-card-footer::before, .job-card-footer::after { content:''; position:absolute; top:-9px; width:18px; height:18px; border-radius:50%; background:#f0f2f8; border:1px solid #e5e7eb; }
.job-card-footer::before { left:-31px; }
.job-card-footer::after { right:-31px; }
.job-card-salary { font-size: 13px; font-weight: 600; color: #c8970a; }

/* Job Detail */
.job-detail-hero { background: linear-gradient(135deg,#1a2e4a,#243d5c); padding: 48px 24px; }
.job-detail-hero-inner { max-width: 900px; margin: 0 auto; }
.job-detail-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); font-size: 13px; text-decoration: none; margin-bottom: 20px; transition: color .2s; }
.job-detail-back:hover { color: rgba(255,255,255,.8); }
.job-detail-body { max-width: 900px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 320px; gap: 28px; background: #f0f2f8; }
.job-apply-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; position: sticky; top: 90px; }
.job-apply-title { font-size: 14px; font-weight: 600; color: #1a2e4a; margin-bottom: 16px; }

/* Track page */
.track-page-wrap { min-height: calc(100vh - 70px); background: linear-gradient(160deg,#1a2e4a 0%,#243d5c 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }

/* Auth page */
.auth-page-wrap { min-height: calc(100vh - 70px); background: linear-gradient(135deg,#1a2e4a 0%,#0f1f3d 100%); display: flex; align-items: center; justify-content: center; padding: 32px 16px; }

/* About page */
.about-page-wrap { background: #fff; }
.about-hero { background: linear-gradient(135deg,#1a2e4a,#243d5c); padding: 72px 24px 56px; text-align: center; }
.about-hero-eyebrow { display: inline-block; background: rgba(200,151,10,.15); color: #c8970a; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 16px; border-radius: 20px; margin-bottom: 16px; border: 1px solid rgba(200,151,10,.25); }
.about-hero-title { font-family: 'Playfair Display',serif; font-size: 40px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 14px; }
.about-hero-sub { font-size: 15px; color: rgba(255,255,255,.55); max-width: 500px; margin: 0 auto; line-height: 1.7; }
.about-section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
  .footer-main .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .job-detail-body { grid-template-columns: 1fr; }
  .job-detail-sidebar { order: -1; }
  .job-apply-card { position: static; }
}
@media(max-width:768px){
  .hdr-inner { padding: 0 16px; }
  .hdr-logo { margin-right: auto; }
  .hdr-logo-img { height: 42px; }
  .logo-services { display: none; }
  .hdr-nav { display: none; }
  .hdr-btn-signin,.hdr-btn-register,.hdr-btn-dash,.hdr-user-wrap { display: none; }
  .hdr-hamburger { display: flex; }
  .footer-main .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-entities .footer-inner { gap: 12px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .jobs-page-wrap { padding: 24px 16px; }
  .jobs-page-title { font-size: 24px; }
  .jobs-grid { grid-template-columns: 1fr; gap: 12px; }
  .job-detail-hero { padding: 28px 16px; }
  .job-detail-body { padding: 20px 16px; gap: 16px; }
  .about-hero-title { font-size: 28px; }
  .about-section { padding: 36px 16px; }
  .float-wa { width: 46px; height: 46px; bottom: 16px; right: 16px; }
}
@media(max-width:420px){
  .hdr-inner { height: 60px; }
  .public-page { padding-top: 60px; }
  .hdr-mobile-menu { top: 60px; }
}
@media print {
  .site-header,.site-footer,.float-wa,.hdr-overlay { display: none !important; }
  .public-page { padding-top: 0; }
}

/* ── ADDITIONAL MOBILE FIXES ── */
@media (max-width: 768px) {
  /* Table overflow on mobile */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  /* Cards full width */
  .d-card, .card { width: 100%; box-sizing: border-box; }
  
  /* Form rows stack on mobile */
  .form-row { flex-direction: column !important; gap: 12px !important; }
  
  /* Modal full width on mobile */
  .modal { max-width: calc(100vw - 32px) !important; margin: 16px !important; }
  .overlay { padding: 16px !important; }
  
  /* Stats grid single column */
  .d-stats-grid { grid-template-columns: 1fr !important; }
  
  /* Grid 2 becomes single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  
  /* Homepage hero fix */
  .hp-hero { min-height: 70vh; padding: 80px 16px 40px; }
  .hp-hero-inner { padding: 0; }
}

@media (max-width: 480px) {
  .hp-hero-btns a { width: 100%; text-align: center; }
  .hp-search-bar { gap: 8px; }
  .btn { padding: 10px 18px; font-size: 13px; }
}
