/* ═══════════════════════════════════════════
   ELITE-JOB PUBLIC STYLES v3.0
   ═══════════════════════════════════════════ */

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

:root {
    --ej-primary: #1e3a5f;
    --ej-primary-hover: #2c5282;
    --ej-accent: #c8902e;
    --ej-accent-hover: #b07d28;
    --ej-card-bg: #ffffff;
    --ej-page-bg: #f5f0e8;
    --ej-title-color: #1a202c;
    --ej-subtitle-color: #4a5568;
    --ej-desc-color: #718096;
    --ej-btn-color: #1e3a5f;
    --ej-btn-text: #ffffff;
    --ej-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ej-title-size: 28px;
    --ej-subtitle-size: 16px;
    --ej-body-size: 14px;
    --ej-title-weight: 800;
    --ej-subtitle-weight: 600;
    --ej-body-weight: 400;
    --ej-border-radius: 12px;
}

/* ── Base ── */
.ej-careers-wrap { font-family: var(--ej-font-family); color: var(--ej-title-color); max-width: 1100px; margin: 0 auto; padding: 0 16px 60px; font-size: var(--ej-body-size); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.ej-careers-wrap * { box-sizing: border-box; }

/* ── Animations ── */
@keyframes ejFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ejFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ejSlideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ejPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ejCheckmark { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero Banner ── */
.ej-banner { background: linear-gradient(135deg, var(--ej-primary) 0%, #2d5a9e 50%, var(--ej-primary) 100%); border-radius: var(--ej-border-radius); padding: 52px 48px; margin-bottom: 36px; position: relative; overflow: hidden; animation: ejFadeIn 0.6s ease-out; }
.ej-banner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.ej-banner::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.ej-banner-inner { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.ej-banner h1 { color: #fff; font-size: 34px; font-weight: var(--ej-title-weight); margin: 0 0 8px; letter-spacing: -0.5px; }
.ej-banner p { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0; }
.ej-banner-sm { padding: 36px 48px; }
.ej-banner-sm h1 { font-size: 28px; }

/* ── Buttons ── */
.ej-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); font-family: var(--ej-font-family); white-space: nowrap; line-height: 1.4; }
.ej-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.ej-btn:active { transform: translateY(0); }
.ej-btn-primary { background: var(--ej-btn-color); color: var(--ej-btn-text); }
.ej-btn-primary:hover { background: var(--ej-primary-hover); color: var(--ej-btn-text); }
.ej-btn-accent { background: var(--ej-accent); color: #fff; font-weight: 700; padding: 14px 34px; }
.ej-btn-accent:hover { background: var(--ej-accent-hover); color: #fff; }
.ej-btn-outline { background: transparent; color: var(--ej-primary); border: 2px solid var(--ej-primary); }
.ej-btn-outline:hover { background: var(--ej-primary); color: #fff; }
.ej-btn-sm { padding: 8px 18px; font-size: 13px; }
.ej-btn-block { width: 100%; }

/* ── Breadcrumb ── */
.ej-breadcrumb { font-size: 13px; color: var(--ej-desc-color); margin-bottom: 20px; animation: ejFadeIn 0.4s ease-out; }
.ej-breadcrumb a { color: var(--ej-primary); text-decoration: none; font-weight: 500; }
.ej-breadcrumb a:hover { text-decoration: underline; }
.ej-breadcrumb span { margin: 0 6px; }

/* ── Careers Layout ── */
.ej-careers-body { display: grid; grid-template-columns: 1fr 320px; gap: 32px; animation: ejFadeUp 0.5s ease-out; }
.ej-careers-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.ej-jobs-count { background: var(--ej-primary); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.ej-section-title { font-size: var(--ej-title-size); font-weight: var(--ej-title-weight); color: var(--ej-title-color); margin: 0 0 6px; }
.ej-section-desc { color: var(--ej-desc-color); font-size: var(--ej-subtitle-size); margin: 0 0 20px; }

/* ── Filter Tabs ── */
.ej-filter-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.ej-filter-tab { padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; font-family: var(--ej-font-family); border: 1.5px solid #d1d5db; background: #fff; color: var(--ej-subtitle-color); cursor: pointer; transition: all 0.25s ease; }
.ej-filter-tab:hover { border-color: var(--ej-primary); color: var(--ej-primary); background: #f0f4ff; }
.ej-filter-tab.active { background: var(--ej-primary); color: #fff; border-color: var(--ej-primary); }

/* ── Default Job Cards ── */
.ej-job-list { display: flex; flex-direction: column; gap: 14px; }
.ej-job-card { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); animation: ejFadeUp 0.4s ease-out both; }
.ej-job-card:hover { border-color: var(--ej-primary); box-shadow: 0 8px 25px rgba(30, 58, 95, 0.08); transform: translateY(-2px); }
.ej-job-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.ej-job-title a { color: var(--ej-title-color); text-decoration: none; }
.ej-job-title a:hover { color: var(--ej-primary); }
.ej-job-tags { font-size: 13px; color: var(--ej-desc-color); }

/* ── Modern Grid Template ── */
.ej-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ej-grid-card { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 28px; transition: all 0.3s ease; animation: ejFadeUp 0.4s ease-out both; display: flex; flex-direction: column; }
.ej-grid-card:hover { border-color: var(--ej-primary); box-shadow: 0 12px 30px rgba(30, 58, 95, 0.1); transform: translateY(-3px); }
.ej-grid-card-header { display: flex; justify-content: space-between; margin-bottom: 14px; }
.ej-grid-dept { background: #e0e7ff; color: #3730a3; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.ej-grid-type { background: #f0fdf4; color: #166534; padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ej-grid-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ej-grid-title a { color: var(--ej-title-color); text-decoration: none; }
.ej-grid-title a:hover { color: var(--ej-primary); }
.ej-grid-summary { color: var(--ej-desc-color); font-size: 13px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.ej-grid-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.ej-grid-tags { font-size: 12px; color: var(--ej-desc-color); }

/* ── Minimal List Template ── */
.ej-minimal-layout { gap: 0; border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); overflow: hidden; }
.ej-minimal-row { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; text-decoration: none; color: inherit; border-bottom: 1px solid #f0f0f0; transition: all 0.2s ease; }
.ej-minimal-row:last-child { border-bottom: none; }
.ej-minimal-row:hover { background: #f8faff; padding-left: 34px; }
.ej-minimal-title { font-size: 16px; font-weight: 600; margin: 0 0 2px; color: var(--ej-title-color); }
.ej-minimal-tags { font-size: 12px; color: var(--ej-desc-color); }
.ej-minimal-meta { display: flex; align-items: center; gap: 16px; }
.ej-minimal-dept { font-size: 13px; color: var(--ej-subtitle-color); font-weight: 500; }
.ej-minimal-arrow { font-size: 18px; color: var(--ej-primary); font-weight: 700; transition: transform 0.2s; }
.ej-minimal-row:hover .ej-minimal-arrow { transform: translateX(4px); }

/* ── Empty State ── */
.ej-empty-state { text-align: center; padding: 60px 20px; animation: ejFadeIn 0.5s ease-out; }
.ej-empty-icon { font-size: 48px; margin-bottom: 16px; }
.ej-empty-state h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--ej-title-color); }
.ej-empty-state p { color: var(--ej-desc-color); margin: 0; font-size: 15px; }
.ej-no-jobs { text-align: center; padding: 48px 20px; color: var(--ej-desc-color); }

/* ── Sidebar ── */
.ej-sidebar-card { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 24px; animation: ejSlideDown 0.4s ease-out; }
.ej-sidebar-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 18px; color: var(--ej-title-color); }
.ej-sidebar-job { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.ej-sidebar-job:last-child { border-bottom: none; }
.ej-sidebar-job strong { display: block; font-size: 14px; font-weight: 600; }
.ej-sidebar-tags { display: block; font-size: 12px; color: var(--ej-desc-color); margin-top: 2px; }
.ej-link { color: var(--ej-primary); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ej-link:hover { color: var(--ej-accent); }

/* ── Job Detail ── */
.ej-detail-banner { background: linear-gradient(135deg, var(--ej-primary) 0%, #2d5a9e 100%); border-radius: var(--ej-border-radius); padding: 40px 44px; margin-bottom: 28px; animation: ejFadeIn 0.5s ease-out; }
.ej-detail-banner-inner { display: flex; align-items: center; justify-content: space-between; }
.ej-detail-banner h1 { color: #fff; font-size: 28px; font-weight: var(--ej-title-weight); margin: 0 0 6px; }
.ej-detail-tags { color: rgba(255,255,255,0.8); font-size: 14px; }
.ej-detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 24px; animation: ejFadeUp 0.5s ease-out; }
.ej-detail-section { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 28px; margin-bottom: 16px; transition: box-shadow 0.3s ease; }
.ej-detail-section:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ej-detail-section h3 { font-size: 16px; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; color: var(--ej-title-color); }
.ej-detail-text { font-size: var(--ej-body-size); color: var(--ej-subtitle-color); line-height: 1.8; }

/* Full Width Template */
.ej-fw-banner { background: linear-gradient(135deg, var(--ej-primary) 0%, #2d5a9e 100%); border-radius: var(--ej-border-radius); padding: 48px; margin-bottom: 32px; text-align: center; }
.ej-fw-tags { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; margin-bottom: 8px; display: block; }
.ej-fw-banner h1 { color: #fff; font-size: 34px; font-weight: 800; margin: 0 0 16px; }
.ej-fw-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.ej-fw-meta span { color: rgba(255,255,255,0.85); font-size: 14px; }
.ej-fw-body { max-width: 800px; margin: 0 auto; }
.ej-fw-section { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 32px; margin-bottom: 16px; }
.ej-fw-section h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--ej-primary); }
.ej-fw-action-bar { position: sticky; bottom: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); padding: 16px 28px; margin-top: 24px; }
.ej-fw-action-inner { display: flex; justify-content: space-between; align-items: center; }
.ej-fw-action-title { font-weight: 700; font-size: 16px; }

/* Magazine Template */
.ej-mag-header { text-align: center; padding: 48px 0 32px; border-bottom: 2px solid #e5e7eb; margin-bottom: 32px; }
.ej-mag-title { font-size: 36px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.5px; }
.ej-mag-meta { color: var(--ej-desc-color); font-size: 15px; }
.ej-mag-body { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.ej-mag-section { margin-bottom: 24px; }
.ej-mag-section h3 { font-size: 18px; font-weight: 700; color: var(--ej-primary); margin: 0 0 12px; }
.ej-mag-inset { background: #f8fafc; border-left: 4px solid var(--ej-primary); padding: 24px; border-radius: 0 var(--ej-border-radius) var(--ej-border-radius) 0; }

/* Role Details Sidebar */
.ej-role-details ul { list-style: none; padding: 0; margin: 0; }
.ej-role-details li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: var(--ej-subtitle-color); }
.ej-role-details li:last-child { border-bottom: none; }
.ej-role-details li strong { color: var(--ej-title-color); margin-right: 4px; }

/* ── Application Form ── */
.ej-form-wrap { background: var(--ej-card-bg); border-radius: var(--ej-border-radius); padding: 40px; border: 1px solid #e5e7eb; animation: ejFadeUp 0.5s ease-out; }
.ej-form-title { font-size: 24px; font-weight: var(--ej-title-weight); margin: 0 0 16px; }
.ej-position-bar { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 14px 20px; margin-bottom: 28px; font-size: 14px; color: var(--ej-subtitle-color); }
.ej-position-bar strong { color: var(--ej-primary); }
.ej-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ej-form-full { grid-column: 1 / -1; }
.ej-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ej-subtitle-color); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.ej-required { color: #e53e3e; }
.ej-input { width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: var(--ej-font-family); color: var(--ej-title-color); background: #fff; transition: border-color 0.25s, box-shadow 0.25s; outline: none; }
.ej-input:focus { border-color: var(--ej-primary); box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1); }
.ej-textarea { resize: vertical; min-height: 80px; }
.ej-cover-toggle { display: flex; gap: 0; margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1.5px solid #d1d5db; width: fit-content; }
.ej-cover-opt { padding: 8px 20px; font-size: 13px; font-weight: 600; font-family: var(--ej-font-family); background: #fff; color: var(--ej-subtitle-color); border: none; cursor: pointer; transition: all 0.2s; }
.ej-cover-opt.active { background: var(--ej-primary); color: #fff; }
.ej-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e7eb; }

/* ── Modal ── */
.ej-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ej-modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
.ej-modal-content { background: #fff; border-radius: 16px; padding: 48px; text-align: center; max-width: 440px; position: relative; z-index: 1; animation: ejFadeUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ej-modal-icon { width: 64px; height: 64px; background: #10b981; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 20px; animation: ejCheckmark 0.6s ease-out; }
.ej-modal-content h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.ej-modal-content p { color: var(--ej-desc-color); margin: 0 0 24px; line-height: 1.6; }

/* ── Schedule Interview ── */
.ej-schedule-intro { text-align: center; margin-bottom: 28px; color: var(--ej-subtitle-color); font-size: 15px; }
.ej-date-group { margin-bottom: 28px; }
.ej-date-heading { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--ej-primary); }
.ej-time-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.ej-slot-btn { padding: 12px 24px; border: 2px solid var(--ej-primary); border-radius: 8px; background: #fff; color: var(--ej-primary); font-weight: 600; font-size: 14px; font-family: var(--ej-font-family); cursor: pointer; transition: all 0.25s ease; }
.ej-slot-btn:hover { background: var(--ej-primary); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2); }
.ej-slot-btn.selected { background: var(--ej-primary); color: #fff; animation: ejPulse 0.3s ease; }
.ej-schedule-confirmation { text-align: center; padding: 60px 20px; animation: ejFadeUp 0.5s ease-out; }

/* Calendar Grid Template */
.ej-cal-grid-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ej-cal-day-card { background: var(--ej-card-bg); border: 1px solid #e5e7eb; border-radius: var(--ej-border-radius); overflow: hidden; }
.ej-cal-day-header { background: var(--ej-primary); padding: 16px; text-align: center; color: #fff; }
.ej-cal-day-num { font-size: 32px; font-weight: 800; display: block; line-height: 1; }
.ej-cal-day-name { font-size: 14px; font-weight: 600; display: block; margin-top: 4px; }
.ej-cal-month { font-size: 11px; opacity: 0.7; display: block; margin-top: 2px; }
.ej-cal-day-slots { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ej-cal-slot { width: 100%; text-align: center; }

/* Timeline Template */
.ej-timeline-wrap { padding-left: 30px; }
.ej-timeline-day { display: flex; gap: 24px; margin-bottom: 32px; position: relative; }
.ej-timeline-marker { display: flex; flex-direction: column; align-items: center; position: absolute; left: -30px; }
.ej-timeline-dot { width: 14px; height: 14px; background: var(--ej-primary); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ej-primary); }
.ej-timeline-line { width: 2px; flex: 1; background: #e5e7eb; margin-top: 4px; }
.ej-timeline-content { flex: 1; }
.ej-timeline-date { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--ej-title-color); }
.ej-timeline-slots { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Loading / Error ── */
.ej-loading { position: relative; min-height: 100px; opacity: 0.6; pointer-events: none; }
.ej-loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 3px solid #e5e7eb; border-top-color: var(--ej-primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
.ej-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 20px; color: #b91c1c; text-align: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ej-careers-body, .ej-detail-body, .ej-mag-body { grid-template-columns: 1fr; }
    .ej-banner { padding: 32px 24px; }
    .ej-banner h1 { font-size: 24px; }
    .ej-banner-inner, .ej-detail-banner-inner { flex-direction: column; gap: 16px; text-align: center; }
    .ej-form-grid { grid-template-columns: 1fr; }
    .ej-form-wrap { padding: 24px; }
    .ej-form-actions { flex-direction: column; gap: 12px; }
    .ej-job-card { flex-direction: column; gap: 12px; align-items: flex-start; }
    .ej-grid-layout { grid-template-columns: 1fr; }
    .ej-careers-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ej-fw-meta { flex-direction: column; gap: 4px; }
    .ej-cal-grid-wrap { grid-template-columns: 1fr 1fr; }
}
