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

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background-color: var(--gray-50); color: var(--gray-800); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--gray-900); }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.625rem 1.25rem; font-weight: 600; border-radius: var(--radius-md); font-family: var(--font-body);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-400); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; border-radius: var(--radius-lg); }

/* Premium Navigation */
header { display:block; padding: 1.5rem 0; background: var(--white); border-bottom: 1px solid var(--gray-200);}
.glass-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; background: transparent; border-bottom: none;
    transition: all 0.3s ease;
}
.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); padding: 0.75rem 0;
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.75rem; font-weight: 800; font-family: var(--font-heading); color: var(--gray-900); text-decoration: none; letter-spacing: -0.02em; }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a, .nav-links a.login-link { color: var(--gray-600); text-decoration: none; font-weight: 500; transition: color 0.2s; font-size: 0.95rem; }
.desktop-nav a:hover, .nav-links a.login-link:hover { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.glass-btn { border-radius: 99px; }

/* Hero Section */
.hero-slider-section {
    position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center;
}
.slider-container, .slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; transform: scale(1.02); transition: opacity 1.5s ease-in-out, transform 10s linear; }
.slider-overlay-gradient {
    position: absolute; inset: 0; 
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(17,24,39,0.95) 100%); z-index: 1;
}
.hero-content {
    position: relative; z-index: 10; max-width: 900px; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white); padding: 0.5rem 1rem; border-radius: 99px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-title { font-size: 4.5rem; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.35rem; color: var(--white); font-weight: 500; margin-bottom: 3rem; max-width: 700px; line-height: 1.6; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* Premium Search Bar */
.premium-search-bar {
    background: var(--white); padding: 0.75rem; border-radius: 99px; display: flex; align-items: center; width: 100%; max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}
.input-modern { display: flex; align-items: center; flex: 1; padding: 0 1.5rem; gap: 1rem; }
.input-modern input { border: none; outline: none; width: 100%; font-size: 1rem; font-family: var(--font-body); color: var(--gray-900); }
.input-modern input::placeholder { color: var(--gray-400); }
.search-icon { color: var(--primary); }
.divider { width: 1px; height: 32px; background: var(--gray-200); }
.border-left { border-left: 1px solid var(--gray-200); }
.search-btn-large { border-radius: 99px; padding: 1rem 2.5rem; font-size: 1.1rem; white-space: nowrap; }

/* Trusted Band */
.trusted-band { background: var(--white); padding: 3rem 5%; text-align: center; border-bottom: 1px solid var(--gray-200); }
.trusted-band p { font-size: 0.85rem; font-weight: 700; color: var(--gray-400); letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.logo-strip { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; align-items: center; opacity: 0.6; filter: grayscale(100%); font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }

/* Job Listings Section */
.modern-job-listings { padding: 6rem 5%; max-width: 1400px; margin: 0 auto; }
.section-header-centered { text-align: center; margin-bottom: 4rem; }
.section-header-centered h2 { font-size: 2.75rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-header-centered p { color: var(--gray-500); font-size: 1.1rem; margin-bottom: 2rem; }
.category-pills { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.pill { padding: 0.6rem 1.5rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 99px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 0.2s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Premium Job Cards - Link wrap */
.premium-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.premium-job-card {
    background: var(--white); border-radius: var(--radius-xl); padding: 2rem;
    border: 1px solid var(--gray-200); text-decoration: none; color: inherit;
    display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
}
.premium-job-card:hover { 
    transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-premium); 
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.company-logo-placeholder { 
    width: 48px; height: 48px; background: var(--primary-light); color: var(--primary);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem;
}
.posted-badge { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; background: var(--gray-100); padding: 0.25rem 0.75rem; border-radius: 99px; }
.job-title { font-size: 1.35rem; margin-bottom: 0.25rem; font-weight: 700; }
.company-name { color: var(--gray-500); font-weight: 500; font-size: 0.95rem; margin-bottom: 1.5rem; }
.job-tags { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tag-location, .tag-type { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--gray-600); background: var(--gray-50); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.5rem; border-top: 1px dashed var(--gray-200); }
.salary-highlight { font-weight: 800; color: var(--gray-900); font-size: 1.1rem; }
.apply-text { color: var(--primary); font-weight: 600; transition: transform 0.2s; }
.premium-job-card:hover .apply-text { transform: translateX(4px); }

/* CTA Section */
.cta-section { background: var(--primary); padding: 6rem 5%; text-align: center; color: var(--white); }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-section h2 { font-size: 3rem; color: var(--white); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.cta-section p { font-size: 1.25rem; color: rgba(255,255,255,0.9); margin-bottom: 3rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1.5rem; }

/* Modern Footer */
.modern-footer { background: var(--gray-900); color: var(--white); padding: 5rem 5% 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand .logo { color: var(--white); font-size: 2rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.link-group h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.link-group a { display: block; color: var(--gray-400); text-decoration: none; margin-bottom: 0.85rem; transition: color 0.2s; }
.link-group a:hover { color: var(--white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: var(--gray-500); font-size: 0.9rem; }

/* Fallbacks for older pages */
.page-header { background: var(--white); padding: 3rem 5%; text-align: center; border-bottom: 1px solid var(--gray-200); margin-bottom: 3rem; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; letter-spacing: -0.02em;}
.data-table-container { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table th { background: var(--gray-50); font-weight: 600; color: var(--gray-600); }

/* Global Mobile Responsiveness */
.responsive-grid { display: grid; gap: 2rem; }
@media (max-width: 1024px) {
    .responsive-grid { grid-template-columns: 1fr !important; }
    .responsive-flex { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
    .responsive-header { font-size: 1.75rem !important; }
    
    .hero-content { padding-top: 100px; }
    .hero-title { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 1.1rem; margin-bottom: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-links { grid-template-columns: 1fr; gap: 1rem; }
    .premium-job-grid { grid-template-columns: 1fr; }
    
    .desktop-nav { display: none; } /* Use mobile nav logic if implemented */
    .premium-search-bar { flex-direction: column; gap: 0.5rem; border-radius: var(--radius-lg); padding: 1rem; }
    .search-btn-large { width: 100%; border-radius: var(--radius-md); }
    .divider { width: 100%; height: 1px; }
}

/* Exam Question wrapping */
.exam-option { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border: 1px solid var(--gray-200); border-radius: 12px; cursor: pointer; transition: all 0.2s; background: var(--white); }
.exam-option:hover { border-color: var(--primary); background: var(--primary-light); }
.exam-option input[type="radio"] { flex-shrink: 0; margin-top: 0.25rem; transform: scale(1.2); cursor: pointer; }
.exam-option span { font-weight: 500; font-size: 0.95rem; color: var(--gray-700); line-height: 1.5; }
