/* ===== Variables - Brand Identity ===== */
:root {
    --primary: #0D3156;
    --primary-light: #164B80;
    --primary-dark: #0A2647;
    --accent: #FF9E18;
    --accent-dark: #E58A0C;
    --accent-light: #FFB84D;
    --bg: #F4F6F9;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --shadow-sm: 0 1px 3px rgba(10,38,71,0.06);
    --shadow: 0 2px 12px rgba(10,38,71,0.08);
    --shadow-lg: 0 8px 30px rgba(10,38,71,0.12);
    --radius: 10px;
    --radius-lg: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Almarai', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,158,24,0.12);
    backdrop-filter: blur(20px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
    padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.75); transition: all 0.25s;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.mobile-menu-btn {
    display: none; background: none; border: none; color: #fff; cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #071B33 0%, var(--primary-dark) 40%, #0D3156 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(255,158,24,0.07), transparent 60%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,158,24,0.1); border: 1px solid rgba(255,158,24,0.2);
    padding: 6px 18px; border-radius: 50px; margin-bottom: 24px;
    font-size: 13px; color: var(--accent);
}
.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
    font-size: 42px; font-weight: 800; color: #fff;
    line-height: 1.3; margin-bottom: 16px;
}
.hero h1 .gold {
    background: linear-gradient(135deg, #FF9E18, #FFD080);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 17px; color: rgba(255,255,255,0.6);
    max-width: 550px; margin: 0 auto 32px;
}
.hero-stats {
    display: flex; justify-content: center; gap: 40px; margin-top: 48px;
}
.hero-stat-num { font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    font-family: 'Almarai', sans-serif; cursor: pointer; border: none;
    transition: all 0.25s; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; box-shadow: 0 4px 16px rgba(255,158,24,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,158,24,0.4);
}
.btn-outline {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-dark {
    background: var(--primary); color: #fff;
}
.btn-dark:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow); border-color: rgba(255,158,24,0.25); }

/* ===== Section ===== */
.section { padding: 60px 0; }
.section-title {
    font-size: 28px; font-weight: 700; color: var(--primary-dark);
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 15px; color: var(--text-light); margin-bottom: 36px;
}

/* ===== Jobs Grid ===== */
.jobs-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.job-card { position: relative; }
.job-card-header { margin-bottom: 16px; }
.job-card-type {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
}
.type-job { background: rgba(10,38,71,0.06); color: var(--primary); }
.type-internship { background: rgba(255,158,24,0.1); color: var(--accent-dark); }

.job-card h3 {
    font-size: 18px; font-weight: 700; color: var(--primary-dark);
    margin: 12px 0 8px;
}
.job-card-meta {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
}
.job-card-meta span {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: var(--text-light);
}
.job-card-desc {
    font-size: 14px; color: var(--text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 16px;
}
.job-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.job-card-deadline { font-size: 12px; color: var(--text-muted); }

/* ===== Filters ===== */
.filters {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.filter-btn {
    padding: 8px 18px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); font-size: 13px; font-weight: 500;
    color: var(--text-light); cursor: pointer; transition: all 0.25s;
    font-family: 'Almarai', sans-serif; text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

.search-box {
    display: flex; gap: 8px; margin-bottom: 24px;
}
.search-box input {
    flex: 1; padding: 12px 18px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    font-family: 'Almarai', sans-serif; background: var(--bg-card);
}
.search-box input:focus { outline: none; border-color: var(--accent); }

/* ===== Job Detail ===== */
.job-detail-header {
    background: linear-gradient(135deg, #071B33, var(--primary-dark), #0D3156);
    padding: 120px 0 40px; color: #fff;
}
.job-detail-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.badge-accent { background: rgba(255,158,24,0.15); color: var(--accent); }
.badge-white { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

.job-detail-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.job-detail-dept { font-size: 15px; color: rgba(255,255,255,0.6); }

.job-detail-body { padding: 40px 0; }
.job-detail-content {
    display: grid; grid-template-columns: 1fr 340px; gap: 30px;
}
.job-detail-main h2 {
    font-size: 18px; font-weight: 700; color: var(--primary-dark);
    margin: 28px 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,158,24,0.25);
}
.job-detail-main h2:first-child { margin-top: 0; }
.job-detail-text {
    font-size: 15px; line-height: 1.9; color: var(--text);
    white-space: pre-line;
}

.job-detail-sidebar .card {
    position: sticky; top: 90px;
}
.sidebar-info { margin-bottom: 20px; }
.sidebar-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.sidebar-info-item:last-child { border-bottom: none; }
.sidebar-info-label { color: var(--text-light); }
.sidebar-info-value { font-weight: 600; color: var(--text); }

/* ===== Form ===== */
.form-page {
    padding: 100px 0 60px;
    max-width: 720px; margin: 0 auto;
}
.form-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm);
}
.form-section-title {
    font-size: 16px; font-weight: 700; color: var(--primary);
    margin: 28px 0 16px; padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,158,24,0.25);
}
.form-section-title:first-child { margin-top: 0; }

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 6px; font-size: 14px;
    font-weight: 600; color: var(--text);
}
.form-group .required::after { content: ' *'; color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
    font-family: 'Almarai', sans-serif; background: #fff;
    transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,158,24,0.1);
}
.form-group .error-text {
    font-size: 12px; color: var(--danger); margin-top: 4px;
}
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ===== Success Page ===== */
.success-page {
    padding: 120px 0 60px; text-align: center;
    max-width: 560px; margin: 0 auto;
}
.success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #34D399);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 36px; color: #fff;
}
.success-tracking {
    background: rgba(10,38,71,0.04); border: 2px dashed rgba(10,38,71,0.15);
    border-radius: var(--radius); padding: 20px; margin: 24px 0;
}
.success-tracking-label { font-size: 13px; color: var(--text-light); margin-bottom: 4px; }
.success-tracking-number {
    font-size: 28px; font-weight: 800; color: var(--primary);
    letter-spacing: 4px; direction: ltr;
}

/* ===== Track Page ===== */
.track-page {
    padding: 120px 0 60px; max-width: 560px; margin: 0 auto;
}
.track-result { margin-top: 24px; }
.track-status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.status-submitted { background: rgba(59,130,246,0.1); color: var(--info); }
.status-reviewing { background: rgba(255,158,24,0.1); color: var(--accent-dark); }
.status-shortlisted { background: rgba(255,158,24,0.12); color: var(--accent-dark); }
.status-interview { background: rgba(13,49,86,0.08); color: var(--primary); }
.status-accepted { background: rgba(16,185,129,0.1); color: var(--success); }
.status-rejected { background: rgba(239,68,68,0.1); color: var(--danger); }

.track-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
}
.track-info-item {
    background: var(--bg); padding: 12px 16px; border-radius: var(--radius);
}
.track-info-item small { font-size: 12px; color: var(--text-muted); display: block; }
.track-info-item strong { font-size: 14px; color: var(--text); }

/* ===== Alerts ===== */
.alert {
    padding: 14px 20px; border-radius: var(--radius); margin-bottom: 16px;
    font-size: 14px; position: relative; display: flex; align-items: center;
    justify-content: space-between;
}
.alert-success { background: rgba(16,185,129,0.08); color: #065F46; border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: rgba(239,68,68,0.08); color: #991B1B; border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.08); color: #92400E; border: 1px solid rgba(245,158,11,0.2); }
.alert-close {
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: inherit; opacity: 0.6; padding: 0 4px;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-light);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.6);
    padding: 48px 0 24px; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand span { font-size: 18px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer h4 { color: var(--accent); font-size: 14px; margin-bottom: 16px; }
.footer a {
    display: block; font-size: 13px; padding: 4px 0;
    color: rgba(255,255,255,0.5); transition: color 0.25s;
}
.footer a:hover { color: var(--accent); }
.footer p { font-size: 13px; margin-bottom: 6px; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 12px; }

/* ===== Features Section ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    text-align: center; padding: 32px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(255,158,24,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(255,158,24,0.08); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 16px;
    font-size: 24px; color: var(--accent-dark);
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: fixed; top: 70px; left: 0; right: 0;
        background: var(--primary-dark); flex-direction: column;
        padding: 16px; border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }

    .hero h1 { font-size: 28px; }
    .hero { padding: 120px 0 60px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 24px; }

    .jobs-grid { grid-template-columns: 1fr; }
    .job-detail-content { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .track-info-grid { grid-template-columns: 1fr; }

    .form-page, .track-page, .success-page { padding: 90px 20px 40px; }
    .container { padding: 0 16px; }
}
