/* ════════════════════════════════════════════════════════════════════════
   CareerPath Pro – Professional CSS
   Modern, responsive, dark/light mode, LinkedIn-inspired design
   ════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables (Light Theme) ─────────────────────────────────────── */
:root,
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-tertiary: #eef0f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f8fc;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-footer: #0a1628;
    --bg-hero: linear-gradient(135deg, #0f2b46 0%, #1a3a5c 40%, #0f4c75 70%, #3282b8 100%);
    --bg-hero2: linear-gradient(135deg, #3282b8 0%, #0f4c75 100%);
    --bg-accent: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    --text-primary: #1a2332;
    --text-secondary: #546478;
    --text-tertiary: #8e9bb3;
    --text-inverse: #ffffff;
    --accent: #0f4c75;
    --accent-hover: #3282b8;
    --accent2: #3282b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border: #e2e6ef;
    --border-light: #f0f2f7;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.07), 0 20px 48px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.08), 0 25px 65px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1240px;
    --glow: 0 0 20px rgba(15,76,117,0.12);
}

/* ── Dark Theme ──────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0b1120;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2236;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --bg-nav: rgba(11, 17, 32, 0.92);
    --bg-footer: #060b16;
    --text-primary: #e2e8f0;
    --text-secondary: #8b97ad;
    --text-tertiary: #5a6883;
    --border: #1e293b;
    --border-light: #172033;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --glow: 0 0 20px rgba(50,130,184,0.2);
}

/* ── Reset & Base ────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol { list-style: none; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    white-space: nowrap;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    gap: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.25);
}

.btn-white {
    background: white;
    color: var(--accent);
    border-color: white;
}

.btn-white:hover {
    background: rgba(255,255,255,0.9);
    color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #2db84e;
    transform: translateY(-2px);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

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

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ── Form Elements ───────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    height: 46px;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.nav-logo i {
    color: var(--accent);
    font-size: 1.5rem;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: rgba(102,126,234,0.08);
}

.nav-link i:not(.dropdown-icon) {
    font-size: 0.85rem;
}

.dropdown-icon {
    font-size: 0.65rem !important;
    transition: var(--transition);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: rgba(102,126,234,0.08);
    color: var(--accent);
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--accent);
}

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile auth links - hidden on desktop */
.nav-mobile-auth {
    display: none;
}

@media (max-width: 768px) {
    .nav-mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 4px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
        padding-top: 12px;
    }
}

/* ── User Dropdown Menu ──────────────────────────────────────────────── */
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
}
.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background .15s;
}
.user-dropdown a:hover {
    background: var(--bg-tertiary);
}
.user-dropdown a i {
    width: 16px;
    text-align: center;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
    background: var(--bg-hero);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Hero gradient text */
.hero-gradient-text {
    background: linear-gradient(135deg, #5eead4, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    align-items: center;
}
.hero-tags-label {
    font-size: .78rem;
    color: rgba(255,255,255,.5);
}
.hero-tag {
    cursor: pointer;
    font-size: .75rem;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid rgba(255,255,255,.06);
}
.hero-tag:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}

/* Search result tabs */
.search-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}
.search-tab:hover { opacity: .85; }
.search-tab-global { background: #667eea; }
.search-tab-india { background: #ff9933; }
.search-tab-tn { background: #764ba2; }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, #5eead4, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Remove typed cursor flash */
.typed-cursor {
    display: none;
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ── Hero Search Bar ─────────────────────────────────────────────────── */
.hero-search {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 8px;
    box-shadow: var(--shadow-xl), var(--glow);
    max-width: 720px;
    margin: 0 auto 32px;
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: visible;
    z-index: 100;
}

.hero-search .search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.hero-search .search-field:focus-within {
    z-index: 10;
}

.hero-search .search-field:last-of-type {
    border-right: none;
}

.hero-search .search-field i {
    color: var(--text-tertiary);
    font-size: 1rem;
}

.hero-search .search-field input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-main);
}

.hero-search .search-field input::placeholder {
    color: var(--text-tertiary);
}

.hero-search .btn {
    border-radius: var(--radius-md);
    padding: 14px 28px;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
    color: white;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.hero-stats .stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

/* ── Job Cards ───────────────────────────────────────────────────────── */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: var(--accent);
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.job-card-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg-tertiary);
    padding: 6px;
    flex-shrink: 0;
}

.job-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-company {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.job-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 20px;
}

.job-card-meta span i {
    font-size: 0.75rem;
    color: var(--accent);
}

.job-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.skill-tag {
    background: rgba(15,76,117,0.1);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    gap: 12px;
    flex-wrap: wrap;
}

.job-salary {
    font-weight: 700;
    color: var(--success);
    font-size: 0.95rem;
}

.job-posted {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.job-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    color: white;
}

.btn-save {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-save:hover, .btn-save.saved {
    color: var(--danger);
    border-color: var(--danger);
}

/* ── Featured Companies ──────────────────────────────────────────────── */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.company-card img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    margin: 0 auto 12px;
    object-fit: contain;
}

.company-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-card p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* ── Category Cards ──────────────────────────────────────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: box-shadow;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,76,117,0.03), rgba(50,130,184,0.03));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: var(--accent);
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(15,76,117,0.1), rgba(50,130,184,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--accent);
}

.category-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ── Career Guidance Cards ───────────────────────────────────────────── */
.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.guidance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.guidance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guidance-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.guidance-card-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.guidance-card-img .overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
}

.guidance-card-body {
    padding: 20px;
}

.guidance-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.guidance-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.guidance-card-body .read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guidance-card-body .read-more:hover i {
    transform: translateX(4px);
}

.guidance-card-body .read-more i {
    transition: var(--transition);
}

/* ── Roadmap Section ─────────────────────────────────────────────────── */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.roadmap-card.ai::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.roadmap-card.web::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.roadmap-card.data::before { background: linear-gradient(90deg, #34c759, #00b4d8); }
.roadmap-card.mobile::before { background: linear-gradient(90deg, #ff9f0a, #ff6b6b); }
.roadmap-card.cloud::before { background: linear-gradient(90deg, #007aff, #00d4ff); }
.roadmap-card.cyber::before { background: linear-gradient(90deg, #ff3b30, #ff9f0a); }

.roadmap-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.roadmap-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.roadmap-card.ai .roadmap-icon { background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15)); color: #764ba2; }
.roadmap-card.web .roadmap-icon { background: linear-gradient(135deg, rgba(240,147,251,0.15), rgba(245,87,108,0.15)); color: #f5576c; }
.roadmap-card.data .roadmap-icon { background: linear-gradient(135deg, rgba(52,199,89,0.15), rgba(0,180,216,0.15)); color: #00b4d8; }
.roadmap-card.mobile .roadmap-icon { background: linear-gradient(135deg, rgba(255,159,10,0.15), rgba(255,107,107,0.15)); color: #ff6b6b; }
.roadmap-card.cloud .roadmap-icon { background: linear-gradient(135deg, rgba(0,122,255,0.15), rgba(0,212,255,0.15)); color: #007aff; }
.roadmap-card.cyber .roadmap-icon { background: linear-gradient(135deg, rgba(255,59,48,0.15), rgba(255,159,10,0.15)); color: #ff3b30; }

.roadmap-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.roadmap-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

.roadmap-steps {
    text-align: left;
    margin-bottom: 20px;
}

.roadmap-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.roadmap-steps li:last-child { border-bottom: none; }

.roadmap-steps li i {
    color: var(--success);
    font-size: 0.75rem;
}

/* ── Filter Sidebar ──────────────────────────────────────────────────── */
.jobs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.filter-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.filter-option:hover {
    color: var(--text-primary);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    accent-color: var(--accent);
}

.filter-option span {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-left: auto;
}

/* ── Job Detail ──────────────────────────────────────────────────────── */
.job-detail-header {
    background: var(--bg-hero);
    padding: 120px 0 60px;
    color: white;
}

.job-detail-content {
    padding: 40px 0;
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: start;
}

.job-detail-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.job-detail-main h2 { font-size: 1.5rem; margin-bottom: 12px; }
.job-detail-main h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--accent); }

.job-detail-main p, .job-detail-main li {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.job-detail-sidebar {
    position: sticky;
    top: 90px;
}

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

.sidebar-card h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.detail-meta-item i {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(102,126,234,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-meta-item .label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.detail-meta-item .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard {
    padding: 100px 0 60px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header .btn {
    flex-shrink: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: rgba(102,126,234,0.12); color: var(--accent); }
.stat-card-icon.green { background: rgba(52,199,89,0.12); color: var(--success); }
.stat-card-icon.orange { background: rgba(255,159,10,0.12); color: var(--warning); }
.stat-card-icon.red { background: rgba(255,59,48,0.12); color: var(--danger); }

.stat-card-content h3 { font-size: 1.5rem; line-height: 1; margin-bottom: 4px; }
.stat-card-content p { color: var(--text-secondary); font-size: 0.85rem; }

.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.dashboard-section h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table inside dashboard */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-badge.active { background: rgba(52,199,89,0.12); color: var(--success); }
.status-badge.pending { background: rgba(255,159,10,0.12); color: var(--warning); }
.status-badge.closed { background: rgba(255,59,48,0.12); color: var(--danger); }

/* ── Resume Builder ──────────────────────────────────────────────────── */
.resume-builder {
    padding: 100px 0 60px;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.resume-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.resume-preview {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 90px;
    color: #1a1d23;
    min-height: 600px;
}

.resume-preview h2 {
    color: #1a1d23;
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.resume-preview h3 {
    color: #667eea;
    font-size: 1rem;
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-preview p {
    font-size: 0.9rem;
    color: #5f6368;
}

/* ── Blog Cards ──────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image .blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    border: none;
    background: none;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question i {
    transition: var(--transition);
    color: var(--accent);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ── Contact Form ────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-cards {
    display: grid;
    gap: 16px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-card i {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(102,126,234,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.9rem; }

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    padding: 6px 16px;
    border-radius: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }

/* ── AI Features Section ─────────────────────────────────────────────── */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ai-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: box-shadow;
}

.ai-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-accent);
}

.ai-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.ai-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15,76,117,0.12), rgba(50,130,184,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--accent);
}

.ai-feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ai-feature-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-author h4 { font-size: 0.9rem; }
.testimonial-author span { color: var(--text-tertiary); font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.footer {
    background: var(--bg-footer);
    color: #a0a7b1;
    padding: 80px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-logo i { color: var(--accent); }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a7b1;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #a0a7b1;
    font-size: 0.88rem;
    padding: 5px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.85rem;
}

.footer-update {
    color: var(--accent);
}

/* ── Loading Spinner ─────────────────────────────────────────────────── */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Toast Notification ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

/* ── Skeleton Loading ────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 250px;
    border-radius: var(--radius-md);
}

/* ── Animations ──────────────────────────────────────────────────────── */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── No Results ──────────────────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.no-results h3 {
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-secondary);
}

/* ── Utility classes ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .job-detail-grid {
        grid-template-columns: 1fr;
    }
    .resume-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions .btn-sm {
        display: none;
    }

    /* Keep auth buttons compact on mobile */
    .nav-actions > div {
        display: none;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 24px;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-search {
        flex-direction: column;
        padding: 10px;
    }

    .hero-search .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 10px 12px;
    }

    .hero-search .btn {
        width: 100%;
        min-height: 44px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stats .stat {
        flex: 1 1 auto;
        min-width: 70px;
    }

    .hero-stats .stat-number {
        font-size: 1.4rem;
    }

    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }

    section {
        padding: 50px 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .data-table {
        display: block;
        overflow-x: auto;
    }

    .job-detail-header {
        padding: 90px 0 40px;
    }

    .job-detail-grid {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar {
        position: static;
    }

    .job-detail-main {
        padding: 20px;
    }

    .resume-grid {
        grid-template-columns: 1fr;
    }

    .resume-preview {
        position: static;
    }

    .resume-form {
        padding: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid,
    .guidance-grid,
    .blog-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 90px 0 40px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-stats .stat {
        min-width: 60px;
        flex: 1 1 auto;
    }

    .hero-stats .stat-number {
        font-size: 1.2rem;
    }

    .hero-stats .stat-label {
        font-size: 0.7rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .contact-form {
        padding: 16px;
    }

    .sidebar-card {
        padding: 16px;
    }

    .job-card {
        padding: 16px;
    }

    .job-card-header {
        gap: 10px;
    }

    .job-card-logo {
        width: 40px;
        height: 40px;
    }

    .page-header {
        padding: 80px 0 30px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-logo i {
        font-size: 1.2rem;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-links h4 {
        font-size: 0.88rem;
    }
}

/* ── Print styles ────────────────────────────────────────────────────── */
@media print {
    .navbar, .footer, .theme-toggle, .btn-apply { display: none; }
    .resume-preview { box-shadow: none; border: 1px solid #000; }
}

/* ════════════════════════════════════════════════════════════════════════
   NEW COMPONENTS
   ════════════════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ─────────────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2), #5eead4);
    z-index: 10001;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Back to Top Button ──────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--bg-accent);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

/* ── Typed Cursor ────────────────────────────────────────────────────── */
.typed-cursor {
    display: inline-block;
    color: #5eead4;
    animation: blink 0.8s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Autocomplete Dropdown ───────────────────────────────────────────── */
.ac-wrapper {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
}

.ac-wrapper input {
    width: 100%;
}

.ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    max-height: 360px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.ac-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ac-header {
    padding: 10px 16px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-light);
}

.ac-header i {
    color: var(--warning);
    font-size: 0.7rem;
}

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.ac-item:last-child {
    border-bottom: none;
}

.ac-item:hover, .ac-item.ac-active {
    background: rgba(102,126,234,0.08);
}

.ac-item.ac-active {
    background: rgba(102,126,234,0.12);
}

.ac-icon {
    color: var(--accent);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.ac-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ac-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.ac-name strong {
    color: var(--accent);
    font-weight: 700;
}

.ac-tag {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.ac-empty {
    padding: 20px 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Toast Enhancements ──────────────────────────────────────────────── */
.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    font-size: 0.85rem;
    transition: color 0.15s;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ── Enhanced Form Focus ─────────────────────────────────────────────── */
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(102,126,234,0.12), var(--glow);
}

/* ── Glassmorphism Cards (for special sections) ──────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}

/* ── Gradient Text Utility ───────────────────────────────────────────── */
.gradient-text {
    background: var(--bg-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Filter Tag Styling ──────────────────────────────────────────────── */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.filter-tag i:hover {
    opacity: 1;
}

/* ── Pulse Animation on Section Badges ───────────────────────────────── */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(15,76,117,0.1), rgba(50,130,184,0.1));
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(15,76,117,0.12);
    text-align: center;
}

/* ── Active Filters Bar ──────────────────────────────────────────────── */
.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ── Source Badge ─────────────────────────────────────────────────────── */
.source-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Company Card hover glow ──────────────────────────────────────────── */
.company-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), var(--glow);
    border-color: var(--accent);
}

/* ── Button ripple effect ────────────────────────────────────────────── */
.btn-primary {
    background: var(--bg-accent);
    color: white;
    border-color: transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ── Improved Hero Stats ─────────────────────────────────────────────── */
.hero-stats .stat {
    text-align: center;
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
}

.hero-stats .stat:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
}

/* ── AI Feature Card Glow ────────────────────────────────────────────── */
.ai-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--glow);
}

/* ── Guidance Card Overlay Shine ─────────────────────────────────────── */
.guidance-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow);
}

/* ── Blog Card Enhancements ──────────────────────────────────────────── */
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow);
}

.blog-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s;
    overflow: hidden;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
}

/* ── Roadmap Card hover ──────────────────────────────────────────────── */
.roadmap-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--glow);
}

/* ── Improved Skeleton Shimmer ───────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s ease infinite;
    border-radius: var(--radius-sm);
}

/* ── CTA Section Enhancements ────────────────────────────────────────── */
.cta-section {
    background: var(--bg-hero);
    padding: 100px 0;
    text-align: center;
    color: white;
    animation: heroGradient 12s ease infinite;
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    will-change: background-position;
    transform: translateZ(0);
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Footer Social Hover ─────────────────────────────────────────────── */
.footer-social a:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

/* ── Hero Floating Shapes ────────────────────────────────────────────── */
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    right: -100px;
    top: -100px;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ── Page Header Gradient ────────────────────────────────────────────── */
.page-header {
    background: var(--bg-hero);
    padding: 130px 0 70px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: heroGradient 12s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
    transform: translateZ(0);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container { position: relative; z-index: 1; text-align: center; }
.page-header h1 { color: white; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* ── Mobile Overrides for new components ─────────────────────────────── */
@media (max-width: 768px) {
    .ac-dropdown {
        left: 0;
        right: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .hero-stats .stat {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .ac-dropdown {
        left: 0;
        right: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE — Portal Cards, Hero Tags, Search Results
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero Quick Tags ─────────────────────────────────────────────────── */
.hero-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    align-items: center;
}

.hero-tags-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
}

.hero-tag {
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.06);
}

.hero-tag:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.hero-badge {
    background: rgba(94,234,212,0.12) !important;
    color: #5eead4 !important;
    border-color: rgba(94,234,212,0.2) !important;
}

/* ── Portal Cards Section ────────────────────────────────────────────── */
.portals-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 28px;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.portal-india::before {
    background: linear-gradient(90deg, #ff9933, #fff, #138808);
}

.portal-tn::before {
    background: linear-gradient(90deg, #0f4c75, #3282b8, #5eead4);
}

.portal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow);
    border-color: var(--accent);
}

.portal-card-header {
    margin-bottom: 24px;
}

.portal-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.portal-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.portal-card-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.portal-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.portal-stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
}

.portal-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.portal-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.portal-cities a {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.portal-cities a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.portal-btn {
    width: 100%;
    justify-content: center;
}

/* ── Search Results Section ──────────────────────────────────────────── */
.search-results-section {
    background: var(--bg-secondary);
    padding: 40px 0;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-results-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.search-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.tab-global { background: #0f4c75; }
.tab-india { background: #ff9933; }
.tab-tn { background: #3282b8; }

.search-tab:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #fff;
}

.search-more-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ── Mobile overrides for portals ────────────────────────────────────── */
@media (max-width: 768px) {
    .portals-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .portals-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-card {
        padding: 24px 20px;
    }
}
