/* ================================================================
    § 6  JOIN OUR TEAM PAGE — .bgw-page / .bg-recruit-wrap
=============================================================== */

/* Hide WordPress title */
body.page-id-2703 .entry-title,
body.page-2703 .entry-title,
body.page-id-2790 .entry-title,
body.page-2790 .entry-title { display: none !important; }

/* Reset content area */
body.page-id-2703 .site-content,
body.page-id-2703 .content-area,
body.page-id-2703 .entry-content,
body.page-id-2703 #primary,
body.page-id-2703 .ast-article-single,
body.page-id-2703 .hentry,
body.page-id-2703 .site-main,
body.page-2703 .site-content,
body.page-2703 .content-area,
body.page-2703 .entry-content,
body.page-2703 #primary,
body.page-2703 .ast-article-single,
body.page-2703 .hentry,
body.page-2703 .site-main,
body.page-id-2790 .site-content,
body.page-id-2790 .content-area,
body.page-id-2790 .entry-content,
body.page-id-2790 #primary,
body.page-id-2790 .ast-article-single,
body.page-id-2790 .hentry,
body.page-id-2790 .site-main,
body.page-2790 .site-content,
body.page-2790 .content-area,
body.page-2790 .entry-content,
body.page-2790 #primary,
body.page-2790 .ast-article-single,
body.page-2790 .hentry,
body.page-2790 .site-main { 
    background: #fff !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    max-width: 100% !important; 
}

body.page-id-2703 body, 
body.page-id-2703 .site,
body.page-2703 body, 
body.page-2703 .site,
body.page-id-2790 body, 
body.page-id-2790 .site,
body.page-2790 body, 
body.page-2790 .site { background: #fff !important; }

/* Main wrapper (both old and new class names) - Full width for modern design */
.bg-recruit-wrap,
.bgw-page { 
    max-width: 100%;
    margin: 0 auto; 
    padding: 0;
}
.bg-recruit-wrap *, 
.bgw-page * { box-sizing: border-box; }

/* ===== BGW PAGE STYLES (shared with why-join.css) ===== */
.bgw-page { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    color: #334155; 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}
.bgw-page a { color: inherit; text-decoration: none; }
.bgw-page img { max-width: 100%; height: auto; display: block; }
.bgw-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.bgw-hero { position: relative; min-height: 580px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 80px max(24px, 5vw); background-color: #0f2940; overflow: hidden; }
.bgw-hero::before { content: ''; position: absolute; inset: 0; background-image: url('https://boongiap.com.my/wp-content/uploads/2026/03/bg-homepage-photo.avif'); background-size: cover; background-position: center 30%; opacity: 0.18; }
.bgw-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,41,64,0.97) 0%, rgba(15,41,64,0.85) 50%, rgba(15,41,64,0.92) 100%); z-index: 1; }
.bgw-hero-content { position: relative; z-index: 2; flex: 1 1 480px; max-width: 680px; }
.bgw-hero-image { position: relative; z-index: 2; flex: 0 0 auto; max-width: 420px; width: 100%; }
.bgw-hero-image img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.bgw-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 3.5vw, 48px); font-weight: 700; color: #fff; line-height: 1.15; margin: 0 0 20px; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.bgw-hero-subtitle { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,0.88); line-height: 1.7; margin: 0 0 36px; max-width: 640px; }
.bgw-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.bgw-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: all 0.3s ease; cursor: pointer; border: none; text-decoration: none; min-height: 48px; min-width: 160px; }
.bgw-btn-primary { background: #f5c842; color: #0f2940; }
.bgw-btn-primary:hover { background: #e0b035; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,200,66,0.4); }
.bgw-btn-secondary { background: #20bd5a; color: #fff; }
.bgw-btn-secondary:hover { background: #1a9c4a; transform: translateY(-2px); }
.bgw-btn-whatsapp { background: #25d366; color: #fff; }
.bgw-btn-whatsapp:hover { background: #1fb855; transform: translateY(-2px); }

/* Stats */
.bgw-stats { background: #0f2940; padding: 40px 24px; }
.bgw-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-width: 1200px; margin: 0 auto; }
.bgw-stat-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 28px 20px; text-align: center; }
.bgw-stat-card:hover { background: rgba(245,200,66,0.1); border-color: rgba(245,200,66,0.25); transform: translateY(-3px); }
.bgw-stat-icon { font-size: 28px; margin-bottom: 10px; }
.bgw-stat-number { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #f5c842; line-height: 1.1; }
.bgw-stat-label { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* Section Title */
.bgw-section-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: #0f2940; text-align: center; margin: 0 0 12px; line-height: 1.2; }
.bgw-section-sub { text-align: center; color: #64748b; font-size: 15px; margin-bottom: 40px; }

/* Feature Cards */
.bgw-why { background: #fff; padding: 64px 24px; }
.bgw-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.bgw-feature-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 24px; transition: all 0.3s ease; }
.bgw-feature-card:hover { border-color: #f5c842; transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,41,64,0.12); }
.bgw-feature-icon { font-size: 36px; margin-bottom: 16px; line-height: 1; }
.bgw-feature-card h3 { font-size: 17px; font-weight: 700; color: #0f2940; margin: 0 0 10px; }
.bgw-feature-card p { font-size: 14.5px; color: #475569; }

/* Role Cards */
.bgw-roles { background: #f8fafc; padding: 64px 24px; }
.bgw-roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.bgw-role-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 24px; position: relative; }
.bgw-role-card:hover { border-color: #0891b2; transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,41,64,0.10); }
.bgw-role-card h3 { font-size: 18px; font-weight: 700; color: #0f2940; margin: 0 0 12px; }
.bgw-role-card p { font-size: 14.5px; color: #475569; margin: 0 0 16px; }
.bgw-role-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bgw-role-tag { display: inline-block; background: #eff6ff; color: #0891b2; border: 1px solid #bae6fd; border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }

/* Table */
.bgw-benefits { background: #fff; padding: 64px 24px; }
.bgw-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e2e8f0; max-width: 1200px; margin: 32px auto 0; }
.bgw-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bgw-table thead th { background: #0f2940; color: #fff; padding: 16px 20px; text-align: left; font-weight: 700; }
.bgw-table tbody tr { border-bottom: 1px solid #e2e8f0; }
.bgw-table tbody tr:nth-child(even) { background: #f8fafc; }
.bgw-table tbody td { padding: 16px 20px; color: #334155; vertical-align: top; }
.bgw-table tbody td:first-child { font-weight: 600; color: #0f2940; white-space: nowrap; }
.bgw-table-icon { margin-right: 8px; }

/* Apply Steps */
.bgw-apply { background: #f8fafc; padding: 64px 24px; }
.bgw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 1200px; margin: 32px auto 0; }
.bgw-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 28px 24px; display: flex; gap: 20px; align-items: flex-start; }
.bgw-step:hover { border-color: #f5c842; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,41,64,0.10); }
.bgw-step-number { flex: 0 0 52px; width: 52px; height: 52px; background: #f5c842; color: #0f2940; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.bgw-step-content h4 { font-size: 16px; font-weight: 700; color: #0f2940; margin: 0 0 8px; }
.bgw-step-content p { font-size: 14px; color: #475569; margin: 0; }
.bgw-apply-cta { text-align: center; margin-top: 32px; }
.bgw-contact-info { text-align: center; margin-top: 24px; color: rgba(255,255,255,0.7); font-size: 14px; }

/* CTA Section */
.bgw-cta-section { background: linear-gradient(135deg, #0f2940 0%, #1a3a5c 100%); padding: 72px 24px; text-align: center; position: relative; overflow: hidden; }
.bgw-cta-section::before { content: ''; position: absolute; inset: 0; background-image: url('https://boongiap.com.my/wp-content/uploads/2026/03/bg-homepage-photo.avif'); background-size: cover; background-position: center; opacity: 0.07; }
.bgw-cta-content { position: relative; z-index: 1; }
.bgw-cta-section h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; color: #fff; margin: 0 0 16px; }
.bgw-cta-section > .bgw-container > p { font-size: clamp(14px, 1.8vw, 17px); color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 36px; }

/* Footer */
.bgw-footer { background: #060f1a; padding: 32px 24px; text-align: center; }
.bgw-footer-inner { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.8; }
.bgw-footer-inner strong { color: rgba(255,255,255,0.75); font-weight: 600; }
.bgw-footer-divider { width: 40px; height: 2px; background: #f5c842; margin: 16px auto; opacity: 0.5; }

/* WhatsApp Float */
.bgw-wa-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: all 0.2s ease; text-decoration: none; z-index: 9999; }
.bgw-wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.55); }
.bgw-wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* FAQ Section */
.bgw-faq { background: #fff; padding: 64px 24px; }
.bgw-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.bgw-faq-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; transition: all 0.3s ease; }
.bgw-faq-item:hover { border-color: #f5c842; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,41,64,0.10); }
.bgw-faq-item h3 { font-size: 16px; font-weight: 700; color: #0f2940; margin: 0 0 12px; }
.bgw-faq-item p { font-size: 14px; color: #475569; margin: 0; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) { .bgw-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .bgw-hero { flex-direction: column; min-height: auto; padding: 60px 20px 40px; text-align: center; }
    .bgw-hero-content { flex: unset; max-width: 100%; }
    .bgw-hero-subtitle { margin-left: auto; margin-right: auto; }
    .bgw-hero-cta { flex-direction: column; align-items: stretch; }
    .bgw-btn { min-width: unset; width: 100%; }
    .bgw-hero-image { max-width: 280px; margin-top: 32px; }
    .bgw-why, .bgw-roles, .bgw-benefits, .bgw-apply { padding: 48px 16px; }
    .bgw-why-grid, .bgw-roles-grid { grid-template-columns: 1fr; }
    .bgw-steps { grid-template-columns: 1fr; }
    .bgw-wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
}
@media (max-width: 640px) { .bgw-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .bgw-stat-card { padding: 20px 12px; } .bgw-stat-number { font-size: 24px; } }
@media (max-width: 480px) { .bgw-hero h1 { font-size: 26px; } .bgw-section-title { font-size: 22px; } }

/* ===== LEGACY RECRUIT STYLES ===== */
.bg-recruit-wrap { 
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.bg-recruit-wrap * { box-sizing: border-box; }

.bg-recruit-wrap h1 { font-size: clamp(1.8em, 5vw, 2.8em); color: #0f2940; margin-bottom: 0.5em; line-height: 1.2; }
.bg-recruit-wrap h2 { font-size: clamp(1.4em, 4vw, 2em); color: #0f2940; margin: 1.5em 0 0.5em; border-bottom: 2px solid #f5c842; padding-bottom: 0.3em; display: inline-block; }
.bg-recruit-wrap h3 { font-size: 1.3em; color: #0f2940; margin: 1.2em 0 0.5em; }
.bg-recruit-wrap p { margin-bottom: 1em; font-size: 1.05em; }
.bg-recruit-wrap a { color: #1557b0; text-decoration: underline; }
.bg-recruit-wrap a:hover { color: #f5c842; }

.bg-recruit-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95em; }
.bg-recruit-table th { background: #0f2940; color: #fff; padding: 14px 12px; text-align: left; }
.bg-recruit-table td { padding: 12px; border: 1px solid #e0e0e0; background: #fff; }
.bg-recruit-table tr:nth-child(even) td { background: #f8f9fa; }

.bg-recruit-steps { counter-reset: step; list-style: none; padding: 0; }
.bg-recruit-steps li { position: relative; padding-left: 50px; margin-bottom: 1.2em; }
.bg-recruit-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: #f5c842; color: #0f2940; border-radius: 50%; text-align: center; line-height: 36px; font-weight: 700; }
.bg-recruit-steps strong { color: #0f2940; }

.bg-recruit-stats { display: flex; flex-wrap: wrap; gap: 1em; margin: 1.5em 0; }
.bg-recruit-stat { flex: 1 1 200px; background: #0f2940; color: #fff; padding: 1.2em; border-radius: 12px; text-align: center; }
.bg-recruit-stat-num { font-size: 2em; font-weight: 700; color: #f5c842; }

.bg-recruit-cta { text-align: center; margin: 2.5em 0; padding: 1em; }

.bg-recruit-final {
    background: linear-gradient(135deg, #0f2940, #1a3a5c);
    color: #fff;
    padding: 2em;
    border-radius: 16px;
    text-align: center;
    margin: 2em 0;
}
.bg-recruit-final h3 { color: #f5c842 !important; margin-top: 0 !important; }
.bg-recruit-final a { color: #f5c842 !important; font-weight: 700; }

@media (max-width: 767px) {
    .bg-recruit-table { font-size: 0.85em; }
    .bg-recruit-table th, .bg-recruit-table td { padding: 8px 6px; }
}