/**
 * TEMA ELEGAN WHITE & SUPER RESPONSIF
 * BKK & Tracer Study SMK Mekarwangi Cibinong
 * Desain Premium: Desktop/Laptop (Font Lega, Spacious Layout) & Smartphone/Android (Compact, Touch-Optimized)
 */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-focus: #93c5fd;

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;

    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --accent-gold-soft: #fef3c7;

    --accent-emerald: #10b981;
    --accent-emerald-soft: #d1fae5;

    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 20px 40px -12px rgba(37, 99, 235, 0.12);
}

/* ================= 1. RESET & BASE LAYOUT ================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================= 2. TYPOGRAPHY: DESKTOP VS MOBILE (COMPACT & SLEEK) ================= */
/* Default / Desktop Sizing - Disesuaikan agar tidak bertumpuk di 100% desktop */
body {
    font-size: 14.5px;
    line-height: 1.55;
}

h1, .display-4 {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    line-height: 1.22;
}

h2, .display-6 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
}

h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

h6 {
    font-size: 0.88rem;
    font-weight: 600;
}

.lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.text-navy {
    color: var(--text-heading) !important;
}

.max-w-700 {
    max-width: 700px;
}

/* Mobile Sizing: Handphone & Android (< 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14.5px;
        line-height: 1.55;
    }

    h1, .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.25;
    }

    h2, .display-6 {
        font-size: 1.4rem !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.22rem !important;
    }

    h4 {
        font-size: 1.1rem !important;
    }

    h5 {
        font-size: 0.98rem !important;
    }

    .lead {
        font-size: 0.98rem !important;
        line-height: 1.5;
    }

    .btn {
        font-size: 0.88rem !important;
        padding: 0.5rem 1rem !important;
    }

    .card {
        padding: 1.15rem !important;
        border-radius: 16px !important;
    }

    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ================= 3. TOP HEADER BAR (ELEGAN WHITE) ================= */
.top-header-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-body);
}

.top-bar-title {
    font-size: clamp(0.72rem, 1.8vw, 0.88rem);
    letter-spacing: 0.2px;
    color: var(--text-heading);
}

.top-brand-tag {
    display: inline-flex;
    align-items: center;
}

.top-tag-img {
    height: 36px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.top-tag-img:hover {
    transform: scale(1.03);
}

.top-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary) !important;
    transition: all 0.2s ease;
}

.top-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline !important;
}

@media (max-width: 576px) {
    .top-tag-img {
        height: 28px;
        max-width: 135px;
    }
    .top-header-bar {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

/* ================= 4. NAVBAR UTAMA (ELEGAN WHITE) ================= */
.navbar-bkk {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 32px;
    }
    .brand-title {
        font-size: 0.85rem;
    }
    .brand-subtitle {
        font-size: 0.6rem;
    }
}

.nav-link-custom {
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.38rem 0.65rem !important;
    border-radius: 9999px;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--primary);
    background-color: var(--primary-soft);
}

.nav-link-custom.active {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

@media (max-width: 991.98px) {
    .nav-link-custom {
        padding: 0.65rem 1rem !important;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    .nav-link-custom.active {
        background-color: var(--primary-soft) !important;
        color: var(--primary) !important;
        box-shadow: none;
    }
}

/* ================= 5. HERO SECTION (ELEGAN WHITE) ================= */
.hero-tracer {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 2.75rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-tracer::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(245, 158, 11, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    padding: 6px 16px;
    border-radius: 9999px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
    margin-bottom: 1.25rem;
}

.hero-title-main {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.text-bermutu {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-desc {
    font-size: clamp(0.95rem, 1.3vw, 1.12rem);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 2rem;
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.75rem 1.8rem;
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Hero Right Role Card */
.hero-role-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.25rem 2rem 1.75rem 2rem;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    position: relative;
    z-index: 1;
}

.hero-floating-bubble {
    position: absolute;
    top: -24px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.15);
    z-index: 5;
}

.hero-role-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.hero-role-item:hover {
    background: #ffffff;
    border-color: var(--primary-border);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    transform: translateX(4px);
}

@media (max-width: 991.98px) {
    .hero-tracer {
        padding: 3rem 0 2rem 0;
    }
    .hero-role-card {
        margin-top: 1.5rem;
        padding: 1.75rem 1.25rem;
    }
    .hero-floating-bubble {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1.25rem;
    }
}

/* ================= 6. BMW STAT BANNER (ELEGAN WHITE) ================= */
.bmw-stat-banner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 12px 35px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    padding: 1.75rem 1rem;
    margin-top: -35px;
    position: relative;
    z-index: 10;
}

.bmw-col {
    padding: 0.75rem 0.5rem;
    border-right: 1px solid #f1f5f9;
}

.bmw-col:last-child {
    border-right: none;
}

.bmw-value {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.bmw-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

@media (max-width: 991.98px) {
    .bmw-stat-banner {
        margin-top: 1rem;
        padding: 1.25rem 0.75rem;
    }
    .bmw-col {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 0.6rem 0.25rem;
    }
    .bmw-col:last-child {
        border-bottom: none;
    }
}

/* ================= 7. FEATURE PORTAL CARDS (3 PERAN) ================= */
.feature-portal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

/* ================= 8. JOB CARDS (LOWONGAN KERJA) ================= */
.job-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.job-badge-mitra {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.job-badge-api {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

.btn-primary-blue {
    background-color: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary-blue:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Platform Badges */
.badge-mitra { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-jobstreet { background-color: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-glints { background-color: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-karirhub { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-indeed { background-color: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-kalibrr { background-color: #ede9fe; color: #5b21b6; border: 1px solid #ddd6fe; }

/* ================= 9. MITRA INDUSTRI DUDI (SIPKL LOGOS) ================= */
.mitra-card-clean {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mitra-card-clean:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

.mitra-logo-box {
    height: 58px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.mitra-logo-box img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(15%);
    transition: all 0.25s ease;
}

.mitra-card-clean:hover .mitra-logo-box img {
    filter: grayscale(0%);
    transform: scale(1.06);
}

/* ================= 10. STEPPER & VERIFIKASI TRACER STUDY ================= */
.verify-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.step-number.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step-number.done {
    background-color: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Header Banner Page (Tracer, Loker, Statistik, Mitra) - Elegan White */
.page-header-white {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 60%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    color: var(--text-heading);
}

/* ================= 11. FOOTER (ELEGAN WHITE / LIGHT SLATE) ================= */
.footer-bkk {
    background: #ffffff;
    color: var(--text-body);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-title {
    color: var(--text-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.social-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-circle-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ================= 12. RESPONSIVE TABLES & UTILITIES ================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= 13. COMPACT TRACER STUDY STYLING ================= */
.tracer-form-card {
    padding: 1.25rem !important;
    border-radius: 16px !important;
}

.tracer-form-card h5, .tracer-form-card h6 {
    font-size: 0.95rem !important;
    font-weight: 700;
    color: var(--text-heading);
}

.tracer-form-card label.form-label {
    font-size: 0.82rem !important;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.tracer-form-card .form-control,
.tracer-form-card .form-select {
    font-size: 0.84rem !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 8px !important;
}

.tracer-form-card .form-check-label {
    font-size: 0.82rem !important;
    color: var(--text-body);
}

.tracer-form-card .form-text {
    font-size: 0.75rem !important;
}

/* Google Jobs & Careers Badge */
.badge-google {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-weight: 700;
}
.badge-google i {
    color: #ea4335;
}