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

:root {
    --primary-color: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #F0F7FF;
    --secondary-color: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --accent-color: #38BDF8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Ads Section */
.ad-container {
    margin: 30px 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.ad-placeholder p {
    margin-bottom: 4px;
}

.ad-placeholder small {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #0066FF 0%, #003399 100%);
    color: white;
    padding: 70px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
}

/* Job Grid */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.job-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.job-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-urgent {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-remote {
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--secondary-color);
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.job-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-info i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.job-salary {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

/* Updated Small Buttons */
.btn {
    padding: 8px 18px; /* Smaller padding */
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem; /* Smaller font */
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Job Detail Page */
.detail-header {
    background: white;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    margin-top: 30px;
}

.detail-main {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.detail-main h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
    font-weight: 700;
}

.detail-main p {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.detail-main ul {
    margin-bottom: 24px;
}

.detail-main li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.detail-main li i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.8rem;
}

.sidebar-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Form Styling */
.form-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    outline: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    background: #fdfdfd;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 50px 0 25px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-col ul li a {
    color: #94A3B8;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.8rem;
    color: #64748B;
}

/* Success Page */
.success-card {
    text-align: center;
    padding: 60px 30px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* --- Mobile Optimizations (98% users) --- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    header { padding: 10px 0; }
    .hero { padding: 50px 0; border-radius: 0 0 30px 30px; }
    .hero h1 { font-size: 2.1rem; }
    .job-grid { grid-template-columns: 1fr; gap: 15px; }
    .job-card { padding: 20px; }
    .nav-links { display: none; }
    .detail-header h1 { font-size: 1.7rem !important; }
    .detail-content { grid-template-columns: 1fr; gap: 20px; }
    .form-container { padding: 24px; margin: 20px auto; }
    .btn { width: 100%; height: 46px; font-size: 0.95rem; }
    .form-navigation { flex-direction: column-reverse; gap: 12px; }
}
