@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Hirevia Color Palette (Based on Reference) */
    --brand-primary: #6d28d9; /* Deep Purple */
    --brand-light: #8b5cf6;
    --brand-secondary: #2563eb; /* Blue */
    --brand-dark: #0f172a; /* Dark Navy Footer */
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e1b4b, #4c1d95, #1e3a8a);
    --gradient-card: linear-gradient(135deg, #ffffff, #f8fafc);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; color: var(--text-main); line-height: 1.2; }
.text-gradient { background: var(--brand-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-md); transition: all 0.2s; cursor: pointer; text-decoration: none; border: none; }
.btn-primary { background: var(--brand-primary); color: #fff; box-shadow: 0 4px 6px rgba(109, 40, 217, 0.2); }
.btn-primary:hover { background: #5b21b6; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Header & Nav */
.navbar { background: #fff; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--brand-primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-primary); }
.nav-links .btn-nav { background: var(--brand-primary); color: white; padding: 8px 16px; border-radius: 6px; }

/* Hero Sections (Matching Reference) */
.hero-gradient { background: var(--gradient-hero); color: white; padding: 6rem 5%; text-align: center; border-radius: 0 0 2rem 2rem; margin-bottom: 4rem; position: relative; overflow: hidden; }
.hero-gradient h1 { font-size: 3.5rem; color: white; margin-bottom: 1rem; }
.hero-gradient p { font-size: 1.2rem; color: #cbd5e1; max-width: 700px; margin: 0 auto 2rem; }

/* Alternating Layouts (Home Page) */
.split-section { display: flex; align-items: center; gap: 4rem; padding: 4rem 5%; max-width: 1400px; margin: 0 auto; }
.split-section:nth-child(even) { flex-direction: row-reverse; }
.split-text { flex: 1; }
.split-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.split-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.split-image { flex: 1; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: auto; display: block; }

/* Careers Page: Benefits & Equipment Cards */
.equipment-banner { background: #1e1b4b; color: white; padding: 3rem; border-radius: var(--radius-xl); margin: 0 5% 3rem; }
.equipment-banner h3 { color: white; font-size: 1.8rem; margin-bottom: 1rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.eq-col h4 { color: white; font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.eq-col ul { list-style: none; }
.eq-col li { color: #94a3b8; font-size: 0.9rem; margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 8px; }
.eq-col li::before { content: '✓'; color: var(--brand-light); }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 0 5% 4rem; }
.benefit-card { background: #fff5f5; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid #fee2e2; }
.benefit-card.training { background: #fffbeb; border-color: #fef3c7; }
.benefit-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Job Grid */
.section-title { padding: 0 5%; font-size: 1.8rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; padding: 0 5% 4rem; }
.job-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; transition: all 0.2s; display: flex; flex-direction: column; }
.job-card:hover { box-shadow: var(--shadow-lg); border-color: var(--brand-light); transform: translateY(-3px); }
.job-badges { display: flex; gap: 8px; margin-bottom: 1rem; }
.badge { background: #f1f5f9; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.badge-ft { background: #e0e7ff; color: #4338ca; }
.job-title { font-size: 1.3rem; margin-bottom: 1rem; }
.job-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 5px; }
.job-card .btn { margin-top: auto; width: 100%; }

/* The Job Modal (Matching the specific purple/split UI) */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 800px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95); transition: all 0.3s ease; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-header { background: var(--brand-primary); color: white; padding: 2rem; position: relative; }
.modal-header h2 { color: white; margin: 10px 0; font-size: 2rem; }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; opacity: 0.8; }
.modal-close:hover { opacity: 1; }
.modal-body-split { display: grid; grid-template-columns: 2fr 1fr; }
.modal-left { padding: 2rem; max-height: 60vh; overflow-y: auto; }
.modal-right { background: #f8fafc; padding: 2rem; border-left: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 1.5rem; }
.apply-box { background: var(--brand-dark); color: white; padding: 1.5rem; border-radius: var(--radius-md); text-align: center; }
.apply-box h4 { color: white; margin-bottom: 10px; }
.apply-box p { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 1.5rem; }

/* Application Form Page (Apply for a Position) */
.apply-wrapper { max-width: 700px; margin: 3rem auto 5rem; background: var(--bg-card); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-main); }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1); }
.upload-box { border: 2px dashed var(--border-color); border-radius: var(--radius-md); padding: 2rem; text-align: center; background: #f8fafc; cursor: pointer; transition: all 0.2s; }
.upload-box:hover { border-color: var(--brand-primary); background: #f5f3ff; }

/* Footer */
.footer { background: var(--brand-dark); color: #cbd5e1; padding: 4rem 5% 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 1rem; display: block; text-decoration: none; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 1.2rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 2rem; text-align: center; font-size: 0.85rem; }

@media (max-width: 900px) {
    .split-section, .split-section:nth-child(even) { flex-direction: column; text-align: center; }
    .equipment-grid, .benefits-grid, .modal-body-split, .footer-grid { grid-template-columns: 1fr; }
    .modal-right { border-left: none; border-top: 1px solid var(--border-color); }
}
/* --- HERO WITH IMAGE OVERLAY & ANIMATION --- */
.hero-gradient { 
    position: relative; 
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(76, 29, 149, 0.85)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: white; padding: 8rem 5% 6rem; text-align: center; border-radius: 0 0 2rem 2rem; margin-bottom: 4rem; 
}
.hero-gradient h1 { font-size: 4rem; color: white; margin-bottom: 1rem; line-height: 1.1; letter-spacing: -1px; }

/* Mouse Scroll Animation */
.mouse-scroll {
    width: 26px; height: 40px; border: 2px solid rgba(255,255,255,0.6); border-radius: 20px;
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: center; padding-top: 6px;
}
.mouse-scroll::before {
    content: ''; width: 4px; height: 8px; background: white; border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* --- HOME FEATURE CARDS (Like "Oncology/Immunology" in ref) --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 3rem auto 5rem; padding: 0 5%; }
.cat-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition); }
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-icon { width: 40px; height: 40px; border-radius: 8px; margin-bottom: 1.5rem; }
.cat-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.cat-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.cat-link { color: var(--brand-secondary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* --- CORE VALUES (About Page) --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin: 3rem 5% 5rem; }
.value-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.value-icon { width: 48px; height: 48px; margin: 0 auto 1.5rem; background: #f5f3ff; color: var(--brand-primary); display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.5rem; }

/* --- TESTIMONIALS --- */
.region-title { font-size: 1.5rem; color: var(--text-main); border-left: 5px solid var(--brand-secondary); padding-left: 15px; margin: 4rem 5% 2rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; padding: 0 5%; }
.test-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); position: relative; display: flex; flex-direction: column; }
.test-card::after { content: '”'; position: absolute; top: 20px; right: 30px; font-size: 5rem; color: #f1f5f9; font-family: serif; line-height: 1; }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }
.test-quote { font-size: 1.05rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 1rem; font-style: italic; }
.test-body { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; position: relative; z-index: 2; }
.test-author { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.author-info h4 { font-size: 1rem; margin-bottom: 2px; }
.author-info p { font-size: 0.85rem; color: var(--brand-secondary); font-weight: 500; }
.author-country { background: #f1f5f9; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* --- CTA BANNER --- */
.cta-banner { background: var(--brand-primary); background: linear-gradient(135deg, #4c1d95, #7c3aed); color: white; text-align: center; padding: 5rem 5%; margin-top: 5rem; }
.cta-banner h2 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.cta-banner p { color: #e2e8f0; font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* =========================================
   ADMIN DASHBOARD STYLES
   ========================================= */

.admin-layout { 
    display: flex; 
    min-height: 100vh; 
    background: var(--bg-main); 
}

/* Dark Sidebar matching the new Footer */
.admin-sidebar {
    width: 260px; 
    background: var(--brand-dark); 
    color: #cbd5e1; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.admin-sidebar-header { 
    padding: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-size: 1.25rem; 
    font-weight: 800; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    letter-spacing: -0.5px;
}

.admin-nav-links { 
    padding: 1.5rem 0; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
}

.admin-nav-links a {
    padding: 0.85rem 1.5rem; 
    color: #cbd5e1; 
    text-decoration: none; 
    font-weight: 500;
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    border-left: 4px solid transparent;
}

.admin-nav-links a:hover, 
.admin-nav-links a.active { 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    border-left-color: var(--brand-light); 
}

/* Main Canvas Area */
.admin-main { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
}

.admin-topbar { 
    background: #fff; 
    padding: 1.25rem 2rem; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 5;
}

.admin-topbar h3 { font-size: 1.25rem; }

.admin-content { 
    padding: 2rem; 
    max-width: 1200px; 
    width: 100%; 
}

/* Admin Specific Components */
.card { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-sm); 
    border: 1px solid var(--border-color); 
    margin-bottom: 1.5rem; 
}

.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
}

.admin-table th, 
.admin-table td { 
    padding: 1.25rem 1rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.95rem;
}

.admin-table th { 
    background: #f8fafc; 
    font-weight: 600; 
    color: var(--text-main); 
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: #f8fafc;
}

/* Metrics Grid */
.metric-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 2.5rem; 
}

.metric-card { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    display: flex; 
    flex-direction: column; 
}

.metric-value { 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: var(--text-main); 
    line-height: 1; 
    margin-bottom: 0.5rem; 
}

.metric-label { 
    font-size: 0.85rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}