/* =========================================
   GLOBAL & RESETS
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Segoe UI, Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   INTERNSKART PREMIUM SCROLLBARS
========================================= */

/* Firefox */
*{
    scrollbar-width: thin;
    scrollbar-color: #2563eb transparent;
}

/* =========================================
   GLOBAL SCROLLBAR
========================================= */

::-webkit-scrollbar{
    width:8px;
    height:8px;
}

::-webkit-scrollbar-track{
    background:transparent;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        180deg,
        #2563eb,
        #3b82f6
    );
    border-radius:999px;
    border:none;
    transition:all .25s ease;
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(
        180deg,
        #1d4ed8,
        #2563eb
    );
}

::-webkit-scrollbar-corner{
    background:transparent;
}

/* =========================================
   ADMIN SIDEBAR SCROLLBAR
========================================= */

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-track{
    background:transparent;
}

.sidebar::-webkit-scrollbar-thumb{
    background:rgba(59,130,246,.75);
    border-radius:999px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
    background:rgba(59,130,246,.95);
}

.sidebar::-webkit-scrollbar-corner{
    background:transparent;
}

/* =========================================
   PHONE ICON FIX
========================================= */

i.fa-phone,
i.fa-phone-alt,
i.fas.fa-phone,
i.fas.fa-phone-alt{
    transform:scaleX(-1);
    display:inline-block;
}

/* =========================================
   PREMIUM HEADER, NAVIGATION & MENUS
========================================= */
/* 1. Transparent Header (Blends with Hero) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
}

/* 2. Glassmorphism State (On Scroll) */
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   DYNAMIC HEADER TEXT COLOR (For Dark Hero Background)
========================================================= */
/* When header is transparent over the dark hero, make text white */
body:has(.hero-wrap) .header:not(.scrolled) .logo-text,
body:has(.hero-wrap) .header:not(.scrolled) .nav-link,
body:has(.hero-wrap) .header:not(.scrolled) .user-name,
body:has(.hero-wrap) .header:not(.scrolled) .mobile-menu-btn {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

/* Gold hover effect for nav links over the dark background */
body:has(.hero-wrap) .header:not(.scrolled) .nav-link:hover {
    color: #F7B731 !important; 
}

/* Make the header search box adapt to the dark background */
body:has(.hero-wrap) .header:not(.scrolled) .premium-search input {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}
body:has(.hero-wrap) .header:not(.scrolled) .premium-search input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}
body:has(.hero-wrap) .header:not(.scrolled) .premium-search i {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Make "Login" / "Logout" outline buttons white over dark background */
body:has(.hero-wrap) .header:not(.scrolled) .btn-outline {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    background: transparent !important;
}
body:has(.hero-wrap) .header:not(.scrolled) .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
}

/* Ensure dropdown arrows are white */
body:has(.hero-wrap) .header:not(.scrolled) .nav-link i {
    color: #ffffff !important;
}

/* Update this block in style.css */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    
    /* ADD THESE LINES TO BOX IT */
    max-width: 1300px; /* Match this to your .container width */
    margin: 0 auto;    /* Centers the box */
    width: 100%;       /* Ensures it doesn't overflow on smaller screens */
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #0f172a;
}

.auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Desktop Navigation Links */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link {
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
    position: relative;
    padding: 5px 0;
}
.header.scrolled .nav-link { color: #0f172a; }
.nav-link:hover { color: #0066ff; }

/* Animated Underline */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066ff;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after { width: 100%; }

/* =========================================
   PERFECT SEARCH BOX
========================================= */
.premium-search form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}
.premium-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%); /* Perfectly vertical centers the icon */
    color: #64748b;
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}
.premium-search input {
    padding: 10px 16px 10px 42px !important;
    width: 280px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
}
.premium-search input:focus {
    width: 340px; 
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 10px 15px -3px rgba(0,0,0,0.1);
}
.premium-search input:focus + i { color: #3b82f6; }

/* =========================================
   MEGA MENU DROPDOWN
========================================= */
.has-mega-menu {
    position: relative;
    padding: 25px 0;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 480px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 50px -10px rgba(15, 23, 42, 0.15);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    z-index: 1001;
}
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-left {
    width: 35%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 15px 0;
}
.mega-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.mega-tab:hover, .mega-tab.active {
    background: #eff6ff;
    color: #0066ff;
    border-left: 3px solid #0066ff;
}
.mega-menu-right {
    width: 65%;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}
.mega-content {
    display: none;
    flex-direction: column;
    gap: 14px;
}
.mega-content.active { display: flex; }
.mega-link {
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    display: block;
}
.mega-link:hover { color: #0066ff; transform: translateX(5px); }

/* =========================================
   MOBILE MENU DRAWER (Fixes the bleeding text)
========================================= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #0f172a;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav-menu {
    position: fixed;
    top: 0; right: -300px; width: 280px; height: 100vh;
    background: #ffffff;
    z-index: 2001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-menu.active { right: 0; }

.mobile-nav-close {
    align-self: flex-end;
    background: #f1f5f9;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.2s;
}
.mobile-nav-close:hover { background: #fee2e2; color: #dc2626; }

.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-links a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-nav-links a i { color: #3b82f6; width: 20px; text-align: center; }

/* Responsive Header Overrides */
@media (max-width: 950px) {
    .hide-on-mobile { display: none !important; }
    .mobile-menu-btn { display: block; }
    .header-container { padding: 15px 20px; }
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #0066ff;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #dcdcdc;
    color: #333;
    background: #fff;
}

.btn-outline:hover {
    border-color: #0066ff;
    color: #0066ff;
}

.btn-employer {
    background: #16a34a;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: #0066ff;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline-white:hover {
    background: #fff;
    color: #0066ff;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
    display: block;
    text-align: center;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================
   PREMIUM HERO SECTION (Single Banner Style)
========================================= */
.hero-wrap {
    background: linear-gradient(135deg, #07132b 0%, #0d1f45 45%, #102860 100%);
    position: relative;
    overflow: hidden;
    min-height: 700px; /* Made slightly taller for a premium feel */
    display: flex;
    align-items: center;
    padding-top: 120px; /* Pushes content down safely under transparent header */
    padding-bottom: 60px;
}
.hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 400px at 70% 50%, rgba(27, 95, 224, 0.22) 0%, transparent 70%),
                radial-gradient(ellipse 400px 300px at 15% 80%, rgba(10, 191, 163, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse 300px 200px at 85% 15%, rgba(247, 183, 49, 0.12) 0%, transparent 50%);
}
.hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
}
.geo-circle1 { position: absolute; width: 500px; height: 500px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.05); top: -100px; right: -80px; }
.geo-circle2 { position: absolute; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.06); bottom: -60px; left: 200px; }
.geo-circle3 { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(10, 191, 163, 0.12); top: 60px; left: 60px; }

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Gives text slightly more room */
    gap: 50px;
    align-items: center;
    padding: 40px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* This targets the accent wrapper to position the SVG relative to the text */
.hero-h1 .accent { 
    color: #F7B731; 
    position: relative; 
    display: inline-block; 
}

/* THE HAND-DRAWN UNDERLINE SVG */
.underline-svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 16px; /* Optimized height */
    color: #F7B731;
    z-index: 1;
    pointer-events: none;
}

.underline-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    /* This makes it draw repeatedly for a lively feel */
    animation: drawLine 3s ease-in-out infinite; 
}

@keyframes drawLine {
    0% { stroke-dashoffset: 450; }
    40%, 100% { stroke-dashoffset: 0; }
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 520px;
    font-weight: 400;
}

/* Beautiful Search Bar */
.hero-search {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 8px;
    max-width: 540px;
    margin-bottom: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s;
}
.hero-search:focus-within { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(27, 95, 224, 0.25); }
.hero-search form { display: flex; align-items: center; width: 100%; margin: 0; gap: 6px; }

.hs-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; flex: 1; }
.hs-field i { color: #94a3b8; font-size: 1.1rem; }
.hs-field input { border: none; outline: none; font-family: inherit; font-size: 1rem; color: #0f172a; width: 100%; background: transparent; }

.hs-sep { width: 1px; height: 28px; background: #e2e8f0; }

.hs-loc { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.hs-loc i { color: #0066ff; font-size: 1rem; }
.hs-loc input { border: none; outline: none; font-family: inherit; font-size: 1rem; color: #0f172a; width: 120px; background: transparent; }

.hs-btn {
    background: #0066ff; color: #fff; border: none; padding: 14px 28px; border-radius: 13px; font-weight: 700; cursor: pointer; transition: 0.25s; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 1rem;
}
.hs-btn:hover { background: #0052cc; transform: translateY(-1px); }

/* Trending Pills */
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-pills-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.hpill {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.9); cursor: pointer; transition: 0.25s; text-decoration: none;
}
.hpill:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Single Image Banner (Internshala Style) */
.hero-visual-single {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* CLS FIX */
    min-height: 600px;
}
.hero-visual-single img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;

    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);

    transition: transform 0.4s ease;
}
.hero-visual-single img:hover {
    transform: scale(1.02);
}

/* =========================================
   STATS – PREMIUM FLOATING CARDS
========================================= */
.stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: -70px auto 80px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.stat {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 36px 42px;
    min-width: 240px;
    text-align: center;
    transition: all 0.35s ease;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05), 0 12px 24px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

/* Subtle top glow line */
.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0066ff, transparent);
    border-radius: 999px;
    opacity: 0.8;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), 0 18px 30px rgba(15, 23, 42, 0.06);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #0066ff;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.2px;
}

/* =========================================
   COMMON SECTIONS & CARDS
========================================= */
.main-container {
    width: 100%;
}

.section {
    padding: 80px 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header p {
    color: #666;
    margin-top: 8px;
}

.view-all {
    text-decoration: none;
    color: #0066ff;
    font-weight: 600;
}

/* Job / Internship Cards */
.internships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.internship-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    border: 1px solid transparent;
}

.internship-card:hover {
    transform: translateY(-6px);
    border-color: #dbeafe;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.company-logo {
    width: 52px;
    height: 52px;
    background: #0066ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.card-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #eaf2ff;
    color: #0066ff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.detail-item {
    line-height: 1.5;
}

.card-footer {
    padding-top: 18px;
    border-top: 1px solid #f1f1f1;
}

.apply-btn {
    display: inline-block;
    background: #0066ff;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.apply-btn:hover {
    transform: translateY(-2px);
}

/* Category Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    margin: 0;
    font-size: 18px;
}

.category-card p {
    margin-top: 10px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    margin: 40px 5% 80px;
    padding: 70px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 18px;
}

.cta-section p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =========================================
   DASHBOARD & SIDEBAR
========================================= */
.dashboard {
    padding: 40px;
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.dash-card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.dash-card h3 {
    font-size: 34px;
    color: #0066ff;
}

.dashboard-section {
    margin-top: 40px;
}

.quick-links a {
    display: inline-block;
    margin-right: 15px;
    background: #0066ff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dash-links a {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    background: #0066ff;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background: #111827;
    color: #ffffff;
    padding-top: 70px;
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Makes the logo text white ONLY inside the dark footer */
.footer .logo-text {
    color: #ffffff;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 25px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* =========================================
   AUTH PAGES — SPLIT LAYOUT 
========================================= */
.auth-page-wrap {
    display: flex;
    min-height: calc(100vh - 72px);
    background: #f8f9fa;
}

.auth-split-left {
    width: 40%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0066ff 0%, #0039cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.auth-brand {
    color: #fff;
    max-width: 400px;
}

.auth-brand-logo {
    margin-bottom: 28px;
}

.auth-brand h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
}

.auth-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.auth-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-perks li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.auth-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: #f8f9fa;
    overflow-y: auto;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.auth-card-wide {
    max-width: 680px;
}

.auth-card-header {
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-card-header p {
    font-size: 14px;
    color: #64748b;
}

/* Auth Forms & Inputs */
.auth-form .form-group { margin-bottom: 18px; }

.auth-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.auth-form .form-group input,
.auth-form .form-group select,
.auth-form .form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}

/* THIS FIXES THE ICON SPACING BUG! */
.auth-form .input-icon-wrap input {
    padding-left: 44px !important; 
}

.auth-form .form-group input:focus,
.auth-form .form-group select:focus,
.auth-form .form-group textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.auth-form .form-group select {
    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='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.auth-form .form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.forgot-link {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #0066ff;
}

.inline-link {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.inline-link:hover { text-decoration: underline; }

.req { color: #ef4444; margin-left: 2px; }

/* File Upload Box (Shared) */
.file-upload-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    position: relative;
    width: 100%;
}

.file-upload-box:hover {
    border-color: #0066ff !important;
    background-color: #f1f5f9 !important;
}

.file-upload-box:hover .file-upload-icon,
.file-upload-box:hover .file-upload-icon i {
    color: #0066ff !important;
}

.file-upload-box.logo-upload:hover {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-icon { font-size: 28px; }
.file-upload-text { font-size: 14px; color: #64748b; font-weight: 500; }
.file-name-label { display: block; font-size: 12px; color: #0066ff; margin-top: 6px; font-weight: 500; }
.browse-text { color: #0066ff; font-weight: 600; }
.logo-upload .browse-text { color: #16a34a; }

/* Alerts & Switches */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 18px;
}

.auth-switch a {
    color: #0066ff;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Miscellaneous Utilities */
.logo-box {
    background: linear-gradient(135deg, #0066ff, #0047cc);
    color: #fff;
    font-weight: 800;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.text-center { text-align: center; }

/* =========================================
   MODALS & TABS
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-box h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 26px;
}

.modal-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
    font-size: 15px;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.3s;
}

.tab-btn:hover { color: #0066ff; }
.tab-btn.active { color: #0066ff; border-bottom-color: #0066ff; }
.tab-btn[data-target="employerTab"].active { color: #16a34a; border-bottom-color: #16a34a; }

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* =========================================
   DASHBOARD LAYOUT FIXES
========================================= */
body:has(.sidebar) .header {
    margin-left: 260px;
    width: calc(100% - 260px);
}

body:has(.sidebar) .main-container {
    margin-left: 260px;
    width: calc(100% - 260px);
    background: #f1f5f9;
}

body:has(.sidebar) .footer {
    margin-left: 260px;
    margin-top: 0;
}

/* =========================================
   SIDEBAR REDESIGN
========================================= */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #0f172a;
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-user {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0066ff, #0047cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.user-details { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 14px; color: #334155; }
.user-role { font-size: 12px; color: #94a3b8; }

.sidebar-menu {
    padding: 20px 14px;
    flex: 1;
    overflow-y: auto;
    list-style: none; /* This removes the dots! */
    margin: 0; /* Ensures no extra browser indentation */
}

.menu-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
    margin: 15px 0 8px 10px;
}

.sidebar-menu li { margin-bottom: 4px; }

.sidebar-menu a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.25s;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #1e293b;
    color: #fff;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.logout-btn:hover { background: #ef4444; color: #fff; }

/* =========================================
   DASHBOARD CONTENT STYLING
========================================= */
.dashboard-wrapper {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.dash-greeting h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.dash-greeting p {
    color: #64748b;
    margin: 0;
    font-size: 15px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.dash-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f1f5f9;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.blue-bg { background: #eff6ff; color: #0066ff; }
.green-bg { background: #f0fdf4; color: #16a34a; }
.purple-bg { background: #faf5ff; color: #9333ea; }

.card-info h3 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 4px; }
.card-info p { color: #64748b; margin: 0; font-size: 14px; font-weight: 500; }

/* Dashboard Grids & Panels */
.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.dash-panel {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-header h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }

/* Tables */
.table-responsive { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
    vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: #f8fafc; }

.job-title-cell strong { color: #0f172a; font-size: 15px; }
.date-cell { color: #64748b; font-size: 13px; }
.action-link { color: #0066ff; text-decoration: none; font-weight: 600; font-size: 13px; }
.action-link:hover { text-decoration: underline; }

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.badge-pending { background: #f1f5f9; color: #475569; }
.badge-success { background: #f0fdf4; color: #16a34a; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-warning { background: #fffbeb; color: #d97706; }

/* Quick Links Vertical */
.quick-links-vertical { display: flex; flex-direction: column; gap: 12px; }
.q-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    transition: 0.2s;
    border: 1px solid transparent;
}
.q-link:hover {
    background: #fff;
    border-color: #0066ff;
    box-shadow: 0 4px 12px rgba(0,102,255,0.08);
}
.q-icon {
    font-size: 24px;
    background: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.q-text { display: flex; flex-direction: column; }
.q-text strong { color: #0f172a; font-size: 14px; margin-bottom: 2px; }
.q-text span { color: #64748b; font-size: 12px; }

/* Empty State */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-icon { font-size: 48px; display: block; margin-bottom: 15px; opacity: 0.5; }
.empty-state h4 { margin: 0 0 8px; font-size: 18px; color: #0f172a; }
.empty-state p { color: #64748b; margin-bottom: 20px; font-size: 14px; }


/* =========================================
   MODERN FORM & PROFILE STYLES (Reusable)
========================================= */
.form-section-label,
.form-section-heading {
    font-size: 1.2rem;
    color: #0f172a;
    margin: 32px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.form-section-heading i { color: #0066ff; }
.form-section-heading:first-of-type { margin-top: 10px; }

.modern-form .form-group { margin-bottom: 20px; }
.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}
.form-hint { font-weight: 400; color: #64748b; font-size: 0.85rem; }
.modern-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s;
    background-color: #f8fafc;
    box-sizing: border-box;
}
.modern-form .form-control:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
    background-color: #ffffff;
}
.modern-form select.form-control { cursor: pointer; }
.modern-form textarea.form-control { resize: vertical; line-height: 1.6; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-icon-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-upload-box {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px dashed #94a3b8;
}
.current-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 102, 255, 0.2);
}
.empty-logo {
    width: 80px;
    height: 80px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 24px;
    flex-shrink: 0;
}
.upload-controls { flex: 1; }
.file-input { background: transparent !important; padding: 0 !important; border: none !important; margin-bottom: 8px; }
.file-help { font-size: 0.85rem; color: #64748b; margin: 0; line-height: 1.4; }
.form-actions { text-align: right; border-top: 1px solid #e2e8f0; padding-top: 24px; margin-top: 10px; }


/* =========================================
   BROWSE JOBS LAYOUT 
========================================= */
.browse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

/* Content Area */
.jobs-content { display: flex; flex-direction: column; gap: 20px; }

/* Search Bar (Aligned with cards) */
.search-bar {
    background: white;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.search-btn {
    padding: 0 24px;
    background: #0066ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 0 4px;
}
.results-count { font-size: 0.95rem; color: #475569; font-weight: 600; }

.sort-select {
    padding: 10px 40px 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    background-color: white;
    cursor: pointer;
    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='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.sort-select:hover, 
.sort-select:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* Job Cards (Tighter and Cleaner) */
.jobs-grid { display: flex; flex-direction: column; gap: 16px; }

.job-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.job-card:hover {
    border-color: #0066ff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.job-header { display: flex; gap: 16px; margin-bottom: 16px; }

.company-logo {
    width: 48px; 
    height: 48px;
    background: #eff6ff;
    color: #0066ff;
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: 800; 
    font-size: 1.2rem;
    flex-shrink: 0;
}

.job-title { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
.company-name { color: #64748b; font-size: 0.9rem; }

.job-meta {
    display: flex; 
    gap: 24px; 
    font-size: 0.85rem; 
    color: #475569; 
    margin-bottom: 0;
}
.job-meta i { color: #94a3b8; margin-right: 6px; }

.job-footer {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}


/* Filters Sidebar Elements */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.filter-header h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0; }
.clear-all { font-size: 0.85rem; color: #0066ff; text-decoration: none; font-weight: 600; transition: 0.2s; }
.clear-all:hover { text-decoration: underline; }

.filter-section { margin-bottom: 24px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-section h4 { font-size: 0.95rem; font-weight: 600; color: #1e293b; margin-bottom: 12px; }
.filter-options { display: flex; flex-direction: column; gap: 12px; }
.filter-option {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}
.filter-option:hover { color: #0066ff; }
.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0066ff;
    margin: 0;
}

/* =========================================
   SINGLE JOB DETAILS PAGE
========================================= */
.job-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
    transition: 0.2s;
}
.back-button:hover { color: #0066ff; }

.job-header-card, .job-section, .sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.company-banner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.job-title-section h1 { font-size: 1.8rem; margin: 0 0 8px; color: #0f172a; }
.company-name-text { font-size: 1.1rem; color: #64748b; margin-bottom: 16px; }
.company-name-text i { color: #0066ff; margin-right: 6px; }

.job-meta-top { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 0.95rem; font-weight: 500; }
.meta-item i { color: #0066ff; }

.job-stats {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-badge { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 0.9rem; font-weight: 500; }
.stat-badge i { color: #0066ff; }
.stat-badge.deadline { color: #dc2626; font-weight: 600; }
.stat-badge.deadline i { color: #dc2626; }

/* Apply Buttons Variations */
.action-buttons { display: flex; gap: 16px; }

.btn-apply-large {
    flex: 1;
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-apply-large:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 102, 255, 0.2); }
.btn-apply-large.disabled-btn { background: #94a3b8; cursor: not-allowed; }
.btn-apply-large.warning-btn { background: #f59e0b; }
.btn-apply-large.success-btn { background: #16a34a; cursor: not-allowed; }

/* Job Description & Tags */
.job-description { color: #475569; line-height: 1.7; font-size: 1rem; }
.skills-container { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tag {
    background: #eff6ff;
    color: #0066ff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Right Sidebar */
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.company-info-item { display: flex; gap: 16px; margin-bottom: 16px; align-items: center; }
.company-info-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066ff;
    font-size: 1.1rem;
}
.company-info-text h4 { font-size: 0.95rem; margin: 0 0 4px; color: #0f172a; }
.company-info-text p { margin: 0; color: #64748b; font-size: 0.85rem; }

.share-buttons { display: flex; gap: 12px; justify-content: center; }
.share-buttons button {
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}
.share-buttons button:hover { transform: scale(1.1); }

/* =========================================
   MOBILE SIDEBAR LOGIC
========================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-close-btn:hover { color: #fff; }

/* Menu Icon Spacing */
.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.8;
}

.sidebar-menu a:hover i, .sidebar-menu a.active i {
    opacity: 1;
    color: #3b82f6; /* Light blue accent for icons on hover/active */
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .sidebar-close-btn {
        display: block;
    }
    
    /* Optional: Hamburger button visibility */
    .mobile-menu-btn {
        display: block !important;
    }
}

/* =========================================
   DASHBOARD MOBILE & UI FIXES
========================================= */
/* Premium White Button Hover */
.btn-white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Prevent Grid Blowout on Mobile */
.dash-panel {
    min-width: 0; /* Forces grid items to shrink properly */
}

/* Force Table to Scroll Internally */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    border-radius: 8px;
}

@media (max-width: 768px) {
    /* Reduce heavy padding on mobile to give more screen space */
    .dashboard-wrapper {
        padding: 15px !important;
    }
    
    /* Make the glassmorphism header banner padding smaller */
    .dashboard-wrapper > div:first-child {
        padding: 25px 20px !important;
    }

    /* Scale down the welcome text */
    .mobile-greeting {
        font-size: 1.6rem !important;
    }

    /* Ensure grid collapses to 1 column */
    .dash-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* =========================================
   CRITICAL MOBILE OVERFLOW FIXES
========================================= */
html, body {
    /* overflow-x: hidden; REMOVED TO FIX DESKTOP STICKY SIDEBAR! */
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Only apply hidden overflow on mobile */
    }
}

@media (max-width: 768px) {
    /* 1. Force header and main content to snap strictly to mobile width */
    body:has(.sidebar) .header,
    body:has(.sidebar) .main-container,
    body:has(.sidebar) .footer {
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
    }

    /* 2. Stop Dashboard Cards from stretching off-screen */
    .dashboard-cards {
        grid-template-columns: 1fr !important; /* Forces 1 stack on mobile */
        gap: 15px !important;
    }

    /* 3. Force panels to respect mobile screen boundaries */
    .dash-panel {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Traps the table inside */
        padding: 20px 15px !important; /* Smaller padding on mobile */
    }

    /* 4. Guarantee the table scrolls internally, not the page */
    .table-responsive {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px; /* Space for the scrollbar */
    }

    /* 5. Fix Glassmorphism Header padding blowout */
    .dashboard-wrapper > div:first-child {
        padding: 25px 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .dashboard-wrapper {
        padding: 15px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
}

/* Premium Inline Add Input */
.premium-inline-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 18px; /* Matches the button height perfectly */
    font-size: 1rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    outline: none;
    margin-bottom: 0;
}

.premium-inline-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.premium-inline-input:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* =========================================================
   PREMIUM HOME UI STYLES 
========================================================= */

/* Section Wrappers for Alternating Backgrounds */
.section-wrapper-white { background-color: #ffffff; }
.section-wrapper-light { background-color: #f8fafc; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }

.premium-section { padding: 80px 5%; max-width: 1300px; margin: 0 auto; }
.premium-header { text-align: center; margin-bottom: 50px; }
.premium-header h2 { font-size: 2.2rem; color: #0f172a; font-weight: 800; margin-bottom: 10px; }
.premium-header p { color: #64748b; font-size: 1.1rem; }

/* Grid Layouts */
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.premium-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* Premium Job/Internship Cards */
.lux-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 25px; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.lux-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.lux-card-header { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; }
.lux-logo { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; flex-shrink: 0; }
.logo-job { background: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }
.logo-int { background: #fdf4ff; color: #e11d48; border: 1px solid #ffe4e6; }
.lux-title { font-size: 1.15rem; color: #0f172a; font-weight: 700; margin: 0 0 5px 0; line-height: 1.3; }
.lux-company { font-size: 0.9rem; color: #64748b; margin: 0; }
.lux-badge { display: inline-block; margin-bottom: 14px; align-self: flex-start; font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; }
.badge-job { background: #f0fdf4; color: #16a34a; }
.badge-int { background: #fdf2f8; color: #e11d48; }
.lux-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; flex: 1; }
.lux-detail-item { font-size: 0.9rem; color: #475569; display: flex; align-items: center; gap: 8px; }
.lux-detail-item i { color: #94a3b8; width: 16px; text-align: center; }
.lux-btn { text-align: center; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: 0.2s; }
.btn-job { background: #f8fafc; color: #3b82f6; border: 1px solid #e2e8f0; }
.btn-job:hover { background: #3b82f6; color: white; }
.btn-int { background: #f8fafc; color: #e11d48; border: 1px solid #e2e8f0; }
.btn-int:hover { background: #e11d48; color: white; }

/* Category Cards */
.cat-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; text-align: center; text-decoration: none; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cat-card:hover { border-color: #3b82f6; background: #f8fafc; transform: translateY(-5px); }
.cat-title { color: #0f172a; font-weight: 700; font-size: 1.1rem; margin: 0; }
.cat-count { color: #64748b; font-size: 0.85rem; font-weight: 500; background: #f1f5f9; padding: 4px 12px; border-radius: 20px; }

/* Premium "How it Works" Step Cards */
.steps-container { display: flex; gap: 30px; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; }
.step-card { flex: 1; background: white; padding: 40px 30px; border-radius: 24px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08); text-align: left; position: relative; overflow: hidden; border: 1px solid #f1f5f9; min-width: 280px; max-width: 400px; transition: transform 0.3s ease; }
.step-card:hover { transform: translateY(-5px); }
.step-number { font-size: 6rem; font-weight: 900; color: #f8fafc; position: absolute; top: -15px; right: 10px; z-index: 0; line-height: 1; user-select: none; }
.step-icon { width: 65px; height: 65px; background: #eff6ff; color: #3b82f6; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 25px; position: relative; z-index: 1; }
.step-card h3 { color: #0f172a; font-size: 1.35rem; margin-bottom: 12px; position: relative; z-index: 1; font-weight: 800; }
.step-card p { color: #64748b; font-size: 1rem; line-height: 1.6; position: relative; z-index: 1; margin: 0; }

/* Luxury CTA */
.lux-cta { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 24px; padding: 60px 40px; text-align: center; color: white; position: relative; overflow: hidden; margin: 0 auto; max-width: 1200px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); }
.lux-cta h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; position: relative; z-index: 2; }
.lux-cta p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 30px; max-width: 600px; margin-inline: auto; position: relative; z-index: 2; }
.lux-cta-btns { display: flex; gap: 15px; justify-content: center; position: relative; z-index: 2; flex-wrap: wrap; }
.btn-solid { background: #3b82f6; color: white; padding: 14px 32px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: 0.2s; border: 2px solid #3b82f6; }
.btn-solid:hover { background: #2563eb; border-color: #2563eb; color: white;}
.btn-glass { background: rgba(255,255,255,0.1); color: white; padding: 14px 32px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: 0.2s; border: 2px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,0.2); color: white;}

/* =========================================================
   HEADER & HERO SEPARATION FIX
========================================================= */
/* Removes the gap so the Hero slides under the transparent header */
.main-container {
    padding-top: 0 !important; 
}
.hero {
    padding-top: 120px; /* Pushes hero content down so it isn't hidden behind the header */
}

/* =========================================================
   PREMIUM SEARCH BOX FIX
========================================================= */
.premium-search {
    position: relative;
    display: flex;
    align-items: center;
}
.premium-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%); /* Perfectly centers the icon vertically */
    color: #64748b;
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}
.premium-search input {
    padding: 10px 16px 10px 42px !important; /* Extra left padding so text doesn't hit the icon */
    width: 280px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.9rem;
    color: #0f172a;
}
.premium-search input:focus {
    width: 340px; 
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 10px 15px -3px rgba(0,0,0,0.1);
}
.premium-search input:focus + i { color: #3b82f6; }

/* =========================================================
   MEGA MENU DROPDOWN (Split Layout)
========================================================= */
.has-mega-menu {
    position: relative;
    padding: 25px 0; /* Creates a safe hover bridge */
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 480px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 50px -10px rgba(15, 23, 42, 0.15);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    z-index: 1001;
}
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Left Sidebar */
.mega-menu-left {
    width: 35%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 15px 0;
}
.mega-tab {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.mega-tab:hover, .mega-tab.active {
    background: #eff6ff;
    color: #0066ff;
    border-left: 3px solid #0066ff;
}

/* Mega Menu Right Content */
.mega-menu-right {
    width: 65%;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}
/* Custom Scrollbar for right side */
.mega-menu-right::-webkit-scrollbar { width: 5px; }
.mega-menu-right::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.mega-content {
    display: none;
    flex-direction: column;
    gap: 14px;
}
.mega-content.active { display: flex; }
.mega-link {
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    display: block;
}
.mega-link:hover {
    color: #0066ff;
    transform: translateX(5px); /* Slide effect on hover */
}

/* =========================================================
   CRITICAL FIX: HEADER OVERLAP ON INTERNAL PAGES
========================================================= */
/* 1. Add top padding to all pages so content isn't hidden under the header */
.main-container {
    padding-top: 90px !important; 
}

/* 2. EXCEPT for the homepage, which uses the Hero section to underlap */
.main-container:has(.hero-wrap) {
    padding-top: 0 !important;
}

/* 3. On internal pages (no hero section), make the header glassmorphism IMMEDIATELY so it's readable */
body:not(:has(.hero-wrap)) .header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
}

/* =========================================
   PREMIUM JOBS LIST & FILTERS
========================================= */

/* Sticky Desktop Sidebar */
.filters-sidebar {
    background: white;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

/* Sidebar Custom Scrollbar */
.filters-sidebar::-webkit-scrollbar { width: 5px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Filter "Show More" Logic */
.hidden-filter { display: none !important; }
.show-more-filters {
    background: none;
    border: none;
    color: #0066ff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    transition: 0.2s;
}
.show-more-filters:hover { text-decoration: underline; }

/* Load More Jobs Button */
.load-more-jobs {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 30px auto;
    background: #f8fafc;
    color: #0066ff;
    border: 1px solid #cbd5e1;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.load-more-jobs:hover {
    background: #eff6ff;
    border-color: #0066ff;
    transform: translateY(-2px);
}

/* Mobile Filter Floating Button */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

/* Mobile Sidebar Drawer Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    transition: 0.3s ease;
}
.filter-overlay.active { display: block; opacity: 1; }

.mobile-close-filter { display: none; }

/* Mobile Overrides */
@media (max-width: 900px) {
    .mobile-filter-btn { display: flex; }
    
    /* Convert Sidebar to Slide-Out Drawer */
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -320px; /* Hidden off-screen */
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 2001;
        border-radius: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 30px 24px 80px 24px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .filters-sidebar.active { left: 0; }
    
    .mobile-close-filter {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #64748b;
        cursor: pointer;
    }
}

/* =========================================
   STRICT MOBILE FILTER DRAWER OVERRIDES
========================================= */
/* Premium Inline Mobile Filter Button (Clean Full-Width Style) */
.mobile-filter-btn {
    display: none; /* Hidden on desktop */
    position: static !important; /* No longer floating */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important; /* Spacing below button */
    cursor: pointer;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    transition: 0.2s;
    
    /* THESE TWO LINES FIX THE LEFT-SHIFT BUG: */
    transform: none !important; 
    left: auto !important;
    height: auto !important;
}

.mobile-filter-btn:hover, .mobile-filter-btn:active {
    background: #f8fbff !important;
    border-color: #0066ff !important;
    color: #0066ff !important;
}

/* Dark Background Overlay */
.filter-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-overlay.active { 
    display: block !important; 
    opacity: 1; 
}

/* Mobile Breakpoint for Clean Layout */
@media (max-width: 900px) {
    .mobile-filter-btn { 
        display: flex !important; 
        order: -1 !important; /* Forces the button to the top of the container */
    }
    
    /* Clean up the results header layout for BOTH Jobs & Internships */
    .results-header {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 15px 0 !important;
        margin-bottom: 20px !important;
    }
    
    /* Restores natural width for the text and dropdown */
    .results-count {
        width: auto !important; 
        order: 1 !important; 
        margin-bottom: 0 !important;
    }
    
    .sort-select {
        width: auto !important;
        flex: none !important;
        order: 2 !important;
        height: 42px !important;
        margin: 0 !important;
    }
    
    /* Disconnect the container from the grid so sidebar can float */
    .browse-container {
        display: block !important; 
        padding: 20px !important;
    }
    
    /* Convert Sidebar to Slide-Out Drawer */
    .filters-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important; /* Hides it off-screen */
        width: 300px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 10001 !important;
        background: #fff !important;
        border-radius: 0 !important;
        transition: left 0.3s ease !important;
        padding: 30px 24px 80px 24px !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1) !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }
    .filters-sidebar.active { 
        left: 0 !important; /* Slides it in */
    }
    
    /* Close Button inside Drawer */
    .mobile-close-filter {
        display: block !important;
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        background: none !important;
        border: none !important;
        font-size: 1.5rem !important;
        color: #64748b !important;
        cursor: pointer !important;
        z-index: 10002 !important;
    }
}

/* =========================================================
   MOBILE TYPOGRAPHY & LAYOUT REFINEMENTS
========================================================= */
@media (max-width: 768px) {
    
    /* Hero Typography */
    .hero {
        padding: 100px 20px 60px !important;
    }
    .hero h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    .hero p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }
    .hero-badge {
        font-size: 12px !important;
        padding: 8px 16px !important;
        margin-bottom: 15px !important;
    }

    /* Beautiful Mobile Search Bar */
    .search-bar {
        flex-direction: column !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .search-input {
        width: 100% !important;
        padding: 14px 16px !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
        border: 1px solid #fff !important;
    }
    .search-btn {
        width: 100% !important;
        border-radius: 12px !important;
        padding: 14px !important;
        box-shadow: 0 6px 15px rgba(0, 102, 255, 0.25) !important;
        font-size: 16px !important;
    }

    /* Section Headers */
    .premium-header h2, .section-title {
        font-size: 24px !important;
        margin-bottom: 5px !important;
    }
    .premium-header p, .section-header p {
        font-size: 14px !important;
    }

    /* How it Works Cards */
    .step-card {
        padding: 30px 20px !important;
        min-width: 100% !important; /* Forces 1 column */
    }
    .step-number {
        font-size: 4.5rem !important;
        top: 0 !important;
        opacity: 0.5; /* Makes the number less overwhelming on small screens */
    }
    .step-card h3 {
        font-size: 1.2rem !important;
    }

    /* Luxury CTA Resizing */
    .lux-cta {
        padding: 40px 20px !important;
        margin: 0 !important;
        border-radius: 20px !important;
    }
    .lux-cta h2 {
        font-size: 24px !important;
    }
    .lux-cta p {
        font-size: 14px !important;
        margin-bottom: 25px !important;
    }
    .lux-cta-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    .lux-cta-btns a {
        width: 100% !important;
        text-align: center !important;
    }

    /* Filter Chips (Popular, Marketing, etc) */
    .filter-chips {
        gap: 8px !important;
        margin-top: 20px !important;
    }
    .chip {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    /* Single Job / Internship Mobile Fixes */
    .job-details-container { 
        padding: 20px 15px !important; 
    }
    .job-header-card, 
    .job-section, 
    .sidebar-card { 
        padding: 20px !important; /* Reduces massive desktop padding */
    }
    .job-title-section h1 { 
        font-size: 1.35rem !important; /* Scales down huge titles */
        line-height: 1.4 !important; 
    }
    .company-name-text { 
        font-size: 0.95rem !important; 
    }
    .job-meta-top { 
        justify-content: center !important; 
        gap: 12px !important; 
    }
    .meta-item { 
        font-size: 0.85rem !important; 
    }
    .job-stats { 
        flex-direction: column !important; /* Stacks the stats neatly */
        align-items: flex-start !important; 
        gap: 12px !important; 
        padding: 15px !important; 
    }
    .action-buttons { 
        flex-direction: column !important; /* Stacks the apply buttons */
        gap: 10px !important; 
    }
    .btn-apply-large { 
        width: 100% !important; 
        padding: 14px !important; 
        font-size: 0.95rem !important; 
    }
    
    /* Resize Section Titles (Description, Skills, etc.) to match Sidebar */
    .job-details-container .dash-panel h3,
    .job-details-container .job-section h2,
    .job-details-container .job-section h3 {
        font-size: 1.1rem !important; 
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }
    
    /* Slightly reduce the regular description text size for better mobile reading */
    .job-description, 
    .job-details-container .dash-panel p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
}

/* =========================================
   MEDIA QUERIES (CONSOLIDATED)
========================================= */

@media (max-width: 1300px) {
    .header-container {
        padding: 16px 20px; /* Reduce padding for smaller screens */
    }
}

@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .auth-page-wrap { flex-direction: column; min-height: auto; }
    .auth-split-left { width: 100%; padding: 40px 30px; }
    .auth-brand h1 { font-size: 24px; }
    .auth-split-right { padding: 30px 20px; align-items: flex-start; }
    .auth-card { padding: 28px 22px; }

    .browse-container { grid-template-columns: 1fr; }
    .filters-sidebar { position: static; }

    .job-details-container { grid-template-columns: 1fr; }
    .company-banner { flex-direction: column; align-items: center; text-align: center; }
    .job-meta-top, .job-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; gap: 15px; padding: 15px 20px; }
    .search-box input { width: 100%; }
    
    body:has(.sidebar) .header,
    body:has(.sidebar) .main-container,
    body:has(.sidebar) .footer {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar { transform: translateX(-100%); } /* Hides sidebar on mobile by default */
    .dashboard-wrapper { padding: 20px; }
    .dash-header { flex-direction: column; align-items: flex-start; gap: 15px; }

    .hero { min-height: auto; padding: 70px 20px 90px; }
    .hero h1 { font-size: 34px; line-height: 1.25; }
    .search-bar { flex-direction: column; }
    
    .stats { width: 90%; flex-direction: column; gap: 30px; padding: 35px 20px; margin-top: -50px; }
    .section-header { flex-direction: column; align-items: flex-start; }
    
    /* Forces footer to stack one-by-one and left align on mobile */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: left;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .footer-contact p {
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }
    .footer { padding-top: 50px; }

    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
    .logo-upload-box { flex-direction: column; text-align: center; }
}

@media (max-width: 650px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .large-box { padding: 30px 20px; }
}

@media (max-width: 600px) {
    .modal-box { padding: 26px 18px; }
}

/* =========================================
   GLOBAL SITE WIDTH SYSTEM
   (HEADER + HOME + JOBS + DETAILS + FOOTER)
========================================= */

/* Full-width background wrappers */
.section-wrapper-light,
.section-wrapper-white {
    width: 100%;
}

/* =========================================
   MAIN CONTENT CONTAINERS
========================================= */

.hero-inner,
.header-container,
.premium-section,
.browse-container,
.job-details-container,
.footer-container {
    max-width: 1300px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* =========================================
   SAME LEFT/RIGHT SPACING
========================================= */

.hero-inner,
.header-container,
.premium-section,
.browse-container,
.job-details-container,
.footer-container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* =========================================
   HERO SECTION
========================================= */

.hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
}

/* =========================================
   BROWSE / JOBS / INTERNSHIP PAGES
========================================= */

.browse-container {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
}

/* Prevent grid overflow */
.jobs-content {
    min-width: 0;
}

/* =========================================
   JOB / INTERNSHIP DETAILS PAGE
========================================= */

.job-details-container {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

/* Prevent content overflow */
.main-content,
.sidebar-right {
    min-width: 0;
}

/* =========================================
   CTA SECTION
========================================= */

.lux-cta {
    width: 100%;
}

/* =========================================
   FOOTER
========================================= */

.footer-container {
    padding-bottom: 50px;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .hero-inner,
    .header-container,
    .premium-section,
    .browse-container,
    .job-details-container,
    .footer-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero-inner,
    .browse-container,
    .job-details-container,
    .footer-container {
        grid-template-columns: 1fr !important;
    }

    .footer-container {
        gap: 30px;
    }
}

/* =========================================

   NEW PREMIUM LAYOUT UPDATES

========================================= */
/* 1. Category Grid: Force exactly 3 columns on desktop, 1 on mobile */

.premium-cat-grid {

    display: grid !important;

    grid-template-columns: repeat(3, 1fr) !important; /* Forces 3 per row */

    gap: 24px !important;

    width: 100% !important;

}

/* 2. Premium Empty State */

.premium-empty-state {

    grid-column: 1 / -1;

    text-align: center;

    padding: 60px 20px;

    background: #f8fafc;

    border: 2px dashed #cbd5e1;

    border-radius: 20px;

    width: 100%;

}

/* 3. Luxury Category Cards */

.premium-cat-card {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 24px;

    display: flex;

    align-items: center;

    gap: 20px;

    text-decoration: none;

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);

}

.premium-cat-card:hover {

    transform: translateY(-5px);

    border-color: #3b82f6;

    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.1);

}

.cat-icon-box {

    width: 54px;

    height: 54px;

    background: #eff6ff;

    color: #3b82f6;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.4rem;

    flex-shrink: 0;

}

.cat-info h3 { margin: 0 0 4px 0; color: #0f172a; font-size: 1.15rem; font-weight: 700; }

.cat-info span { color: #64748b; font-size: 0.9rem; font-weight: 500; }


@media (max-width: 900px) {

    .premium-cat-grid {

        grid-template-columns: repeat(2, 1fr) !important; /* 2 per row on tablets */

    }

}

@media (max-width: 600px) {

    .premium-cat-grid {

        grid-template-columns: 1fr !important; /* 1 per row on phones */

    }

}

/* =========================================
   HERO SEARCH TABS
========================================= */
.hero-search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.hst-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.hst-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.hst-btn.active {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
}
.hst-count {
    background: #0066ff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.4;
}
.hst-btn.active .hst-count {
    background: #0066ff;
    color: #fff;
}

/* =========================================
   OPTIMIZED HERO MOBILE STACK
========================================= */
@media(max-width: 900px) {
    .hero-wrap {
        padding-top: 80px !important; 
        padding-bottom: 20px !important;
        min-height: auto;
    }

    .hero-inner { 
        grid-template-columns: 1fr !important; 
        text-align: center; 
        padding: 10px 20px 20px !important;
        position: relative; 
    }
    
    .hero-badge, .hero-h1, .hero-sub {
        position: relative;
        z-index: 5;
    }
    
    .hero-h1 { font-size: 2.2rem !important; margin-bottom: 10px !important; }
    
    .hero-sub { 
        margin: 0 auto 15px !important; 
        max-width: 360px !important;
        font-size: 0.95rem !important;
    }

    /* Image — Positioning set to absolute to allow search overlay */
    .hero-visual-single { 
        display: flex !important; 
        position: absolute;
        top: 250px; 
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 320px;
        z-index: 1;
        pointer-events: none; 
    }

    .hero-visual-single img {
        width: 100%;
        height: auto;
        border: none;           /* add this */
        box-shadow: none;       /* add this */
        background: transparent; /* add this */
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    /* Wrapper — Search block sits lower to overlay the image */
    .hero-search-wrapper {
        margin-top: 300px !important; 
        position: relative;
        z-index: 10;
        width: 100%;
    }

    .hero-search-tabs {
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-search {
        margin: 0 auto 15px !important;
    }
    
    .hero-pills { 
        justify-content: center; 
        position: relative; 
        z-index: 10; 
    }
}

/* Precise adjustments for common mobile screen widths */
@media(min-width: 375px) and (max-width: 429px) {
    .hero-visual-single { top: 260px; max-width: 300px; }
    .hero-search-wrapper { margin-top: 290px !important; }
}

@media(min-width: 430px) and (max-width: 900px) {
    .hero-visual-single { top: 280px; max-width: 340px; }
    .hero-search-wrapper { margin-top: 330px !important; }
}

@media(max-width: 374px) {
    .hero-visual-single { top: 240px; max-width: 280px; }
    .hero-search-wrapper { margin-top: 275px !important; }
    .hero-h1 { font-size: 1.9rem !important; }
}

@media(max-width:600px) {
    .hero-search form { flex-direction: column; padding: 5px; }
    .hs-sep { width: 100%; height: 1px; margin: 5px 0; }
    .hs-field, .hs-loc { width: 100%; padding: 12px; }
    .hs-loc input { width: 100%; }
    .hs-btn { width: 100%; justify-content: center; margin-top: 5px; }
}

/* =========================================
   CATEGORY MODAL
========================================= */
.cat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}
.cat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cat-modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 30px 30px;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    text-align: center;
}
.cat-modal-overlay.active .cat-modal-box {
    transform: translateY(0);
}
.cat-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-modal-close:hover { background: #fee2e2; color: #dc2626; }
.cat-modal-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}
.cat-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.cat-modal-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 24px;
}
.cat-modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cat-modal-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.cat-modal-option:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.cat-opt-job { background: #f8faff; border-color: #dbeafe; }
.cat-opt-job:hover { border-color: #3b82f6; background: #eff6ff; }
.cat-opt-int { background: #fdf8ff; border-color: #ffe4e6; }
.cat-opt-int:hover { border-color: #e11d48; background: #fdf2f8; }
.cat-opt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cat-opt-job .cat-opt-icon { background: #dbeafe; color: #3b82f6; }
.cat-opt-int .cat-opt-icon { background: #ffe4e6; color: #e11d48; }
.cat-opt-info { flex: 1; }
.cat-opt-info strong { display: block; color: #0f172a; font-size: 0.95rem; margin-bottom: 2px; }
.cat-opt-info span { color: #64748b; font-size: 0.82rem; }
.cat-opt-arrow { color: #94a3b8; font-size: 0.85rem; }

/* =========================================
   BACK TO TOP BUTTON
========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #0066ff;
    transform: translateY(-2px);
}

/* Disable card hover lifts on touch devices */
@media (hover: none) {
    .lux-card:hover,
    .premium-cat-card:hover,
    .step-card:hover { transform: none !important; }
}

/* =========================================
   HEADER STYLE IMPROVEMENTS
========================================= */
/* Active nav link */
.nav-link-active { color: #0066ff !important; }
.nav-link-active::after { width: 100% !important; }

/* For Employers — matches site blue theme */
.nav-link-employers { color: #0066ff !important; }
.nav-link-employers:hover { color: #0052cc !important; }
body:has(.hero-wrap) .header:not(.scrolled) .nav-link-employers {
    color: #ffffff !important;
}

/* Mega menu featured link */
.mega-link-featured { color: #0066ff !important; font-weight: 600 !important; }
.mega-link-featured i { margin-right: 6px; }

/* Mega menu empty state */
.mega-empty {
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 5px 0;
    margin: 0;
    font-style: italic;
}

/* Mobile nav active link */
.mobile-nav-active { color: #0066ff !important; }

/* =========================================
   SIDEBAR STYLE IMPROVEMENTS
========================================= */
/* Sidebar badge — red count pill */
.sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Candidate profile nudge strip */
.sidebar-nudge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 4px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    padding: 11px 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-nudge:hover { background: rgba(59, 130, 246, 0.2); }
.sidebar-nudge > i:first-child { color: #60a5fa; font-size: 1rem; flex-shrink: 0; }
.sidebar-nudge strong { display: block; color: #bfdbfe; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.sidebar-nudge span { color: #93c5fd; font-size: 11px; line-height: 1.3; }

/* =========================================
   FOOTER UPDATES
========================================= */

/* 4-column footer grid */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 10px;
    margin: 20px 0 16px;
}
.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-social-btn:hover {
    background: #0066ff;
    border-color: #0066ff;
    color: #fff;
    transform: translateY(-2px);
}

/* Contact link */
.footer-contact-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-link:hover { color: #ffffff; }

/* Footer bottom — left/right split */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    color: #94a3b8;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.footer-credit-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.footer-credit-link:hover { text-decoration: underline; }

/* Mobile footer */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 6px;
    }
}

/* =========================================
   FOOTER STYLE EXTRACTED
========================================= */

.modal-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,0.55);backdrop-filter:blur(6px);z-index:9999;align-items:center;justify-content:center;padding:20px;animation:overlayIn .25s ease both;}
.modal-overlay.active{display:flex;}
@keyframes overlayIn{from{opacity:0}to{opacity:1}}
.modal-box{background:#fff;border-radius:24px;padding:40px;width:100%;max-width:460px;position:relative;box-shadow:0 32px 80px rgba(15,23,42,0.18),0 12px 32px rgba(15,23,42,0.1);animation:boxIn .3s cubic-bezier(.34,1.56,.64,1) both;max-height:92vh;overflow-y:auto;}
.modal-box-lg{max-width:560px;}
@keyframes boxIn{from{opacity:0;transform:translateY(30px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.modal-box::-webkit-scrollbar{width:5px}.modal-box::-webkit-scrollbar-thumb{background:#e0e7ff;border-radius:99px}
.modal-close{position:absolute;top:16px;right:18px;background:#f1f5f9;border:none;width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer;color:#64748b;display:flex;align-items:center;justify-content:center;transition:.2s;}
.modal-close:hover{background:#fee2e2;color:#dc2626;}
.modal-header{text-align:center;margin-bottom:26px;}
.modal-logo{display:flex;justify-content:center;margin-bottom:14px;}
.modal-header h2{font-size:26px;font-weight:800;color:#0f172a;margin:0 0 6px;}
.modal-header p{font-size:14px;color:#64748b;margin:0;}
.logo-box{background:linear-gradient(135deg,#0066ff,#0047cc);color:#fff;font-weight:800;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:13px;flex-shrink:0;}
.logo-text{font-size:20px;font-weight:700;color:#0f172a;}
.logo a{display:flex;align-items:center;gap:10px;text-decoration:none;}
.modal-form{margin-top:4px;}
.form-group{margin-bottom:15px;}
.form-group label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:6px;}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 14px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:14px;color:#1a1a1a;background:#fff;transition:.2s;outline:none;box-sizing:border-box;font-family:inherit;}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#0066ff;box-shadow:0 0 0 3px rgba(0,102,255,0.1);}
.form-group select{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='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:38px;}
.input-icon-wrap{position:relative;display:flex;align-items:center;}
.input-icon-wrap input{padding-left:40px;}
.input-icon{position:absolute;left:14px;font-size:15px;color:#94a3b8;pointer-events:none;z-index:1;display:flex;align-items:center;height:100%;}
.pass-toggle{position:absolute;right:12px;background:none;border:none;font-size:12px;font-weight:600;color:#0066ff;cursor:pointer;padding:0;}
.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.form-row-between{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:13px;}
.forgot-link{color:#0066ff;text-decoration:none;font-weight:500;}
.checkbox-label{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#374151;cursor:pointer;font-weight:400!important;}
.checkbox-label input[type="checkbox"]{width:16px;height:16px;flex-shrink:0;margin-top:1px;accent-color:#0066ff;}
.inline-link{color:#0066ff;text-decoration:none;font-weight:500;}
.btn-lg{padding:14px 20px;font-size:15px;border-radius:10px;font-weight:600;cursor:pointer;}
.btn-full{width:100%;display:block;text-align:center;border:none;margin-top:4px;}
.modal-footer-text{text-align:center;font-size:13px;color:#64748b;margin-top:18px;}
.link-btn{background:none;border:none;color:#0066ff;font-weight:600;cursor:pointer;font-size:13px;padding:0;}
.modal-more-note{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;padding:10px 14px;font-size:12px;color:#475569;margin-bottom:14px;line-height:1.5;}
.reg-tabs{display:flex;background:#f1f5f9;border-radius:12px;padding:5px;margin-bottom:22px;gap:4px;}
.reg-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border:none;border-radius:9px;font-size:14px;font-weight:600;cursor:pointer;background:transparent;color:#64748b;transition:.25s;}
.reg-tab.active{background:#fff;color:#0066ff;box-shadow:0 2px 8px rgba(0,0,0,0.08);}
@media(max-width:600px){.modal-box{padding:26px 18px;}.form-grid-2{grid-template-columns:1fr;gap:0;}}