/* ==========================================================================
   PT. AERING CAREERS STYLESHEET
   Accurately modeled after https://web.aering.my.id/careers Reference Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary-orange: #F15A24;
    --primary-blue: #082f49;
    --primary-cyan: #0e7490;
    --accent-orange: #f97316;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-intro: #536474;
    --border-light: #d7e3e9;
    --card-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
    --card-shadow-hover: 0 24px 54px rgba(15, 23, 42, 0.12);
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.company-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.company-brand-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-orange);
    letter-spacing: -0.5px;
}

.company-brand-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(241, 90, 36, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(241, 90, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-link-custom {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: #fff !important;
}

/* ── Services Button (PT. AERING Standard) ────────── */
.services-btn {
    --services-btn-bg: rgba(255, 255, 255, 0.08);
    --services-btn-hover: #f97316;
    --services-btn-color: #ffffff;
    --services-btn-border: rgba(255, 255, 255, 0.72);
    --services-btn-hover-color: #ffffff;
    --services-btn-hover-border: #f97316;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    min-width: 160px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--services-btn-border);
    background: var(--services-btn-bg);
    color: var(--services-btn-color);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    backdrop-filter: blur(10px) saturate(130%);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.services-btn:hover,
.services-btn:focus-visible {
    border-color: var(--services-btn-hover-border);
    background: var(--services-btn-hover);
    color: var(--services-btn-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    text-decoration: none;
}

/* ── Careers Hero ─────────────────────────────────── */
#careers-hero {
    padding-top: 155px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)),
                url('/assets/images/careers/hero_bg.jpg') center/cover;
    color: white;
    text-align: center;
    position: relative;
}

.careers-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #67e8f9;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.careers-hero-eyebrow span {
    width: 34px;
    height: 2px;
    background: #f97316;
    display: inline-block;
}

.careers-hero-heading {
    font-family: "Poppins", sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: #fff;
}

.careers-hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto 30px;
}

/* ── Open Positions Section ───────────────────────── */
.careers-positions-section {
    padding: 44px 0 36px;
    background: #fff;
}

.careers-positions-section .container,
#job-hero .container {
    width: min(1180px, calc(100% - 40px));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.careers-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 28px;
}

.careers-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #0e7490;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.careers-section-eyebrow span {
    width: 26px;
    height: 2px;
    background: #f97316;
    display: inline-block;
}

.careers-section-title {
    font-family: "Poppins", sans-serif;
    max-width: 700px;
    margin: 0;
    color: #082f49;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.careers-section-intro {
    max-width: 500px;
    margin: 0 0 2px auto;
    padding-left: 20px;
    border-left: 2px solid #f97316;
    color: #536474;
    font-size: 14px;
    line-height: 1.65;
}

/* ── Category Cards (Compact & Refined) ───────────── */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    height: 175px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(8, 47, 73, 0.08);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(8, 47, 73, 0.14);
    color: #fff;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 0.85;
}

.category-card i {
    font-size: 36px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 2;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.08);
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.category-card-title {
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    letter-spacing: -0.01em;
}

.category-card-desc {
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.92;
    margin-bottom: 0;
    max-width: 90%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── Filter Card ──────────────────────────────────── */
.careers-filter-card {
    border: 1px solid #d7e3e9;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
    padding: 28px;
    margin-bottom: 48px;
}

.careers-filter-card .form-label {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.careers-filter-card .form-control,
.careers-filter-card .form-select {
    border-radius: 8px;
    border: 1px solid #d7e3e9;
    font-size: 14px;
    color: #082f49;
    padding: 8px 14px;
}

.careers-filter-card .form-control:focus,
.careers-filter-card .form-select:focus {
    border-color: #0e7490;
    box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.15);
    outline: none;
}

/* ── Job Cards (List) ─────────────────────────────── */
.job-card {
    --job-accent: #0e7490;
    position: relative;
    border: 1px solid #d7e3e9;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    margin-bottom: 24px;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: var(--job-accent);
}

.job-card:hover {
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
    transform: translateY(-5px);
    color: inherit;
}

.job-card-inner { padding: 28px 32px 24px; }

.job-card-title {
    font-family: "Poppins", sans-serif;
    color: #082f49;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta-item i { color: var(--job-accent); }

.job-card-desc {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0;
}

/* ── Empty State ──────────────────────────────────── */
.careers-empty {
    padding: 64px 32px;
    text-align: center;
    border: 1px dashed #d7e3e9;
    border-radius: 18px;
    background: #fafcfd;
}

.careers-empty i {
    font-size: 72px;
    color: #d7e3e9;
    margin-bottom: 24px;
    display: block;
}

.careers-empty h3 {
    font-family: "Poppins", sans-serif;
    color: #082f49;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.careers-empty p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 28px;
}

/* ── Bottom CTA Bar ───────────────────────────────── */
.careers-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-top: 48px;
    padding: 28px 32px;
    border: 1px solid rgba(8, 47, 73, 0.12);
    border-radius: 14px;
    background: #082f49;
    box-shadow: 0 18px 44px rgba(8, 47, 73, 0.16);
    color: #fff;
}

.careers-cta-label {
    display: block;
    margin-bottom: 5px;
    color: #67e8f9;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.careers-cta p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Job Detail Hero & Single View ────────────────── */
#job-hero {
    padding-top: 150px;
    padding-bottom: 75px;
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)),
                url('/assets/images/careers/hero_bg.jpg') center/cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.job-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.job-hero-back:hover { color: #fff; }

.job-hero-title {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.job-content-area {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.job-content-area > .job-intro-p {
    font-size: 17px;
    color: #536474;
    line-height: 1.8;
    padding-left: 28px;
    border-left: 2px solid #f97316;
    margin-bottom: 2rem;
}

.job-content-section-title {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #082f49;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* ── Footer (#footer exact match with web.aering.my.id) ─ */
#footer {
  position: relative;
  padding: 0;
  color: #fff;
  font-size: 13px;
  background: #003b73;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/footer_flight_route_map.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
  mix-blend-mode: multiply;
  opacity: 0.30;
  pointer-events: none;
  z-index: 0;
}

#footer .footer-top {
  background-color: #003b73;
  padding: 36px 0 30px;
}

#footer .footer-top > .container,
#footer .footer-bottom > .container {
  position: relative;
  z-index: 1;
}

#footer .footer-top .footer-links,
#footer .footer-top .footer-contact,
#footer .footer-top .footer-location {
  min-width: 0;
}

#footer .footer-top .footer-links,
#footer .footer-top .footer-location {
  padding-top: 12px;
}

#footer .footer-top h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 11px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

#footer .footer-top h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  border-bottom: 2px solid #ffffff;
}

#footer .footer-contact-body {
  padding-left: 0;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul i {
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 14px;
  text-align: center;
  opacity: 0.92;
}

#footer .footer-top .footer-links ul a {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 1.25;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

#footer .footer-top .footer-links ul a:hover {
  color: #00bfff;
}

#footer .footer-top .footer-contact p {
  color: #ffffff;
  line-height: 1.85;
  margin-bottom: 10px;
}

#footer .footer-top .social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

#footer .footer-top .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #002e5f;
  line-height: 1;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: 0.3s;
  text-decoration: none;
}

#footer .footer-top .social-links a i {
  display: block;
  font-size: 18px;
  line-height: 1;
}

#footer .footer-top .social-links a:hover {
  background: #00bfff;
  color: #ffffff;
  transform: translateY(-3px);
}

#footer .map-container {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

#footer .map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#footer .footer-bottom {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .footer-company-name {
  color: #f97316;
  font-weight: 700;
}

@media (max-width: 991px) {
    .careers-section-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .careers-section-intro { margin: 0; }
    .careers-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Select2 Custom Modern Bootstrap 5 Styles
   ========================================================================== */

/* CRITICAL FIX: When dropdownParent is $('body'), the dropdown renders at the
   document root. z-index MUST exceed Bootstrap modal z-index (1055) so the
   dropdown floats above the modal overlay. Bootstrap backdrop is z-index 1050,
   modal is 1055, so we use 1070. */
.select2-container.select2-container--bootstrap-5 {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-dropdown {
    z-index: 1065 !important;
    pointer-events: auto !important;
}

.select2-container--bootstrap-5 .select2-selection {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid #d7e3e9 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.85rem !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

.select2-container--bootstrap-5 .select2-selection .select2-selection__rendered {
    color: #1e293b !important;
    line-height: 42px !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--bootstrap-5 .select2-selection .select2-selection__placeholder {
    color: #64748b !important;
}

.select2-container--bootstrap-5 .select2-selection .select2-selection__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #0e7490 !important;
    box-shadow: 0 0 0 0.25rem rgba(14, 116, 144, 0.15) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search {
    padding: 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.88rem !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #0e7490 !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.15) !important;
    outline: none !important;
}

/* CRITICAL FIX: Only the root options list must scroll with max-height.
   Nested optgroup lists must NOT have max-height or they collapse and overflow. */
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options:not(.select2-results__options--nested) {
    max-height: 220px !important;
    overflow-y: auto !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options--nested {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Optgroup container list items must NOT have item padding */
.select2-container--bootstrap-5 .select2-dropdown .select2-results__option[role="group"] {
    padding: 0 !important;
    margin: 0 !important;
}

/* Only selectable options get item padding and hover effects */
.select2-container--bootstrap-5 .select2-dropdown .select2-results__option:not([role="group"]) {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.88rem !important;
    padding: 8px 14px !important;
    line-height: 1.45 !important;
    color: #1e293b !important;
    transition: background-color 0.15s ease !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted {
    background-color: #0e7490 !important;
    color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--selected {
    background-color: #f0fdfa !important;
    color: #0e7490 !important;
    font-weight: 600 !important;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__group {
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #0369a1 !important;
    background: #f0f9ff !important;
    padding: 7px 14px !important;
    border-top: 1px solid #e0f2fe !important;
    border-bottom: 1px solid #e0f2fe !important;
    margin: 0 !important;
}
