/* ===== CSS Variables & Reset ===== */
:root {
    --primary-orange: #FF6B00;
    --primary-teal: #00BFA5;
    --primary-blue: #2E3B8E;
    --dark-blue: #1A2456;
    --light-gray: #F5F7FA;
    --medium-gray: #E8ECEF;
    --text-dark: #2C3E50;
    --text-gray: #6C757D;
    --white: #FFFFFF;
    --yellow-badge: #FFD700;
    --red-urgent: #FF4444;
    --gradient-orange: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
    --gradient-hero: linear-gradient(90deg, #FF8C00 0%, #FFB800 50%, #FF6B00 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 18px;
}

.logo img {
    width: 30px;
    transition: var(--transition);
    transform: scale(2.5) translateY(2px);
}


.logo:hover img {
    transform: scale(2.8) translateY(2px);
}

.nav {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-start;
    padding-left: 23px;
    margin-left: 10px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown .nav-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-icon {
    transition: transform 0.3s ease;
    margin-top: 1px;
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    padding: 6px 0;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.notification-link,
.login-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.notification-link:hover,
.login-link:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.btn-employer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-employer:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
}

.user-greeting svg {
    color: var(--text-gray);
}

.btn-candidate {
    background: var(--primary-teal);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-candidate:hover {
    background: #00a896;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.text-link {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.text-link:hover {
    color: var(--primary-teal);
}

.divider-text {
    color: var(--text-gray);
    font-size: 14px;
    padding: 0 8px;
}

/* ===== Hero Section ===== */
.hero {
    background: transparent;
    padding: 20px 0 25px;
    position: relative;
    overflow: hidden;
}

.hero-shell {
    width: 100%;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0;
}

.hero-stage {
    position: relative;
    min-height: 470px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(25, 35, 76, 0.18);
}

.hero-banner-slider {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eef3f8 0%, #dde6f1 100%);
}

.hero-banner-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 16, 44, 0.22) 0%, rgba(6, 16, 44, 0.10) 26%, rgba(6, 16, 44, 0.04) 52%, rgba(6, 16, 44, 0.16) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.06));
    pointer-events: none;
    z-index: 1;
}

.hero-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 0.9s ease;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-decoration: none;
    pointer-events: none;
}

.hero-banner-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-banner-meta {
    display: none;
}

.hero-banner-controls {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    pointer-events: none;
}

.hero-banner-controls[hidden] {
    display: none;
}

.hero-banner-arrow {
    width: 48px;
    height: 100%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
    pointer-events: auto;
    opacity: 0.42;
}

.hero-banner-arrow:hover {
    opacity: 1;
}

.hero-banner-arrow-prev {
    background: linear-gradient(90deg, rgba(6, 16, 44, 0.18), rgba(6, 16, 44, 0));
}

.hero-banner-arrow-next {
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(6, 16, 44, 0.18), rgba(6, 16, 44, 0));
}

.hero-banner-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-banner-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 6;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    min-height: 470px;
    padding: 26px 34px;
    pointer-events: none;
}

/* Search Box */
.search-box {
    position: relative;
    z-index: 7;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: min(100%, 390px);
    pointer-events: auto;
}

.search-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.search-title strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-orange);
    display: block;
}

.search-form {
    margin: 20px 0;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.search-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1);
}

.search-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-reset,
.btn-advanced {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-dark);
    font-size: 13px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-reset:hover,
.btn-advanced:hover {
    background: rgba(255, 255, 255, 0.5);
}

.btn-search {
    width: 100%;
    padding: 12px;
    background: #12b3a4;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 8px 18px rgba(18, 179, 164, 0.18);
    letter-spacing: 0.3px;
}

.btn-search:hover {
    background: #0fa395;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 179, 164, 0.22);
}

.register-text {
    font-size: 13px;
    color: var(--text-dark);
    text-align: center;
    margin: 20px 0 12px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: #f28a1a;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(242, 138, 26, 0.18);
    letter-spacing: 0.3px;
}

.btn-register:hover {
    background: #e07f17;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(242, 138, 26, 0.22);
}

/* Hero Banner */
.hero-banner {
    background: var(--gradient-orange);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeInRight 0.6s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-slide {
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-logo {
    background: var(--white);
    color: var(--primary-orange);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.banner-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    color: var(--white);
    margin-bottom: 20px;
}

.banner-subtitle p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-list {
    list-style: none;
    font-size: 14px;
}

.banner-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.banner-list li::before {
    content: '•';
    position: absolute;
    left: 5px;
    font-size: 20px;
}

.banner-image {
    position: absolute;
    right: 120px;
    bottom: 0;
    width: 300px;
    animation: floatUp 1s ease-out;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-qr {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.qr-icon {
    background: var(--primary-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.banner-qr img {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
}

.banner-qr p {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.banner-features {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.feature-item svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Zalo Chat Button */
.bot-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bot-chat:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(0, 104, 255, 0.4);
}

.bot-chat img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.bot-chat:hover img {
    transform: scale(1.4);
}

/* ===== Top Employers Section ===== */
.top-employers {
    padding: 50px 0 24px;
    background: var(--white);
}

.top-employer-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.top-employer-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 22px 18px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    position: relative;
}

.top-employer-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    border-color: #e6edf5;
}

.top-employer-tile img {
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
    filter: saturate(0.96);
}

.top-employer-name {
    display: none;
}

.top-employer-tile.is-fallback {
    justify-content: flex-start;
    padding: 18px 20px;
}

.top-employer-tile.is-fallback .top-employer-name {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.4;
}

.top-employer-empty {
    grid-column: 1 / -1;
    padding: 28px 18px;
    text-align: center;
    color: var(--text-gray);
    border: 1px dashed #d7dfeb;
    border-radius: 12px;
    background: #f8fafc;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--dark-blue);
    margin-bottom: 40px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.top-employers .section-title {
    color: #111827;
    font-weight: 900;
}

/* ===== Job Listings Section ===== */
.job-listings {
    padding: 40px 0;
    background: var(--light-gray);
}

.tabs {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--medium-gray);
}

.tab {
    padding: 10px 18px;
    background: transparent;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.tab.active {
    color: var(--primary-orange);
}

.tab.active::after {
    width: 100%;
}

.tab:hover {
    color: var(--primary-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.job-card-empty {
    grid-column: 1 / -1;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d6dfeb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.job-card {
    position: relative;
    background: var(--white);
    border: 1px solid #e5edf5;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.homepage-job-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.company-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid #e8eef5;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    flex-shrink: 0;
}

.company-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #1f2a60;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.job-info {
    flex: 1;
    min-width: 0;
    padding-right: 78px;
}

.job-title {
    font-size: 14px;
    font-weight: 700;
    color: #24344d;
    margin-bottom: 5px;
    line-height: 1.3;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card:hover .job-title {
    color: var(--dark-blue);
}

.company-name {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
    line-height: 1.3;
}

.salary {
    font-size: 12px;
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 3px;
}

.location {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-top,
.badge-urgent {
    position: absolute;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-top {
    bottom: 12px;
    background: var(--yellow-badge);
    color: var(--text-dark);
}

.badge-urgent {
    bottom: 40px;
    background: var(--red-urgent);
    color: var(--white);
}

.job-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 22px;
}

.job-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d6e0eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.job-page-btn:hover {
    border-color: #c7d3e2;
    background: #f8fafc;
}

.job-page-btn.active {
    border-color: transparent;
    background: #111827;
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14);
}

.job-page-btn-next {
    min-width: 42px;
    font-size: 15px;
}

.job-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 38px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

/* ===== Job Categories Section ===== */
.job-categories {
    padding: 50px 0;
    background: var(--white);
}

.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-tab {
    padding: 12px 30px;
    background: var(--light-gray);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.category-tab.active {
    background: var(--primary-blue);
    color: var(--white);
}

.category-tab:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Job Alert Signup ===== */
.job-alert-signup {
    padding: 18px 0 56px;
    background: var(--white);
}

.job-alert-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 58px 72px 54px;
    background:
        linear-gradient(135deg, rgba(10, 19, 54, 0.72), rgba(14, 28, 71, 0.56)),
        url('../images/banner-people.png') center/cover no-repeat;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.job-alert-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 51, 0.34), rgba(8, 18, 51, 0.08));
    pointer-events: none;
}

.job-alert-copy,
.job-alert-form,
.job-alert-status {
    position: relative;
    z-index: 1;
}

.job-alert-copy {
    max-width: 940px;
    margin: 0 auto 24px;
    text-align: center;
    color: #fff;
}

.job-alert-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.job-alert-copy h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 10px;
}

.job-alert-copy p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.job-alert-form {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 840px;
    margin: 0 auto;
}

.job-alert-input {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-height: 64px;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-right: none;
    border-radius: 14px 0 0 14px;
}

.job-alert-input svg {
    flex-shrink: 0;
}

.job-alert-input input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--dark-blue);
    font-size: 16px;
    font-weight: 500;
}

.job-alert-input input::placeholder {
    color: #7c8aa5;
}

.job-alert-submit {
    min-width: 230px;
    min-height: 64px;
    padding: 0 28px;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(135deg, #1ac2b4, #09b1a3);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.job-alert-submit:hover {
    filter: brightness(0.97);
}

.job-alert-status {
    min-height: 24px;
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}

/* ===== Footer ===== */
.footer {
    background: var(--light-gray);
    padding: 50px 0 30px;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 13px;
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.app-badge img {
    height: 40px;
    transition: var(--transition);
}

.app-badge:hover img {
    transform: scale(1.05);
}

.social-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--medium-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.footer-info p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.footer-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-badges img {
    height: 50px;
}

/* ===== Responsive Design ===== */

/* Extra Large Desktop */
@media (max-width: 1400px) {
    .container {
        padding: 0 30px;
    }

    .hero-stage {
        min-height: 440px;
    }
}

/* Laptop & Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-stage,
    .hero-content {
        min-height: 420px;
    }

    .hero-content {
        align-items: flex-start;
        padding: 28px;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .login-dropdown {
        width: 350px;
    }
}

/* Tablet Small */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px;
        gap: 5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 10px;
        border-bottom: 1px solid var(--medium-gray);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link.active {
        color: var(--primary-blue);
        background: rgba(46, 59, 142, 0.05);
        font-weight: 600;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 5px;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-employer,
    .btn-candidate {
        padding: 8px 14px;
        font-size: 12px;
    }

    .logo img {
        width: 25px;
    }

    .hero-stage,
    .hero-content {
        min-height: 460px;
    }

    .hero-content {
        padding: 20px;
        align-items: flex-start;
    }

    .job-alert-panel {
        padding: 48px 40px 44px;
    }

    .job-alert-copy h2 {
        font-size: 24px;
    }

    .top-employer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .hero-banner-meta {
        left: 20px;
        bottom: 68px;
        font-size: 12px;
    }

    .hero-banner-controls {
        inset: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .login-dropdown {
        width: calc(100vw - 40px);
        max-width: 350px;
        right: -15px;
    }

    .bot-chat {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .bot-chat img {
        width: 50px;
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-content {
        padding: 10px 0;
        gap: 15px;
    }

    .logo img {
        width: 22px;
    }

    .logo:hover img {
        transform: scale(2.5) translateY(2px);
    }

    .user-greeting {
        font-size: 12px;
        display: none;
    }

    .hero {
        padding: 15px 0 20px;
    }

    .hero-stage,
    .hero-content {
        min-height: 500px;
    }

    .hero-content {
        padding: 16px;
    }

    .job-alert-signup {
        padding: 10px 0 42px;
    }

    .job-alert-panel {
        padding: 36px 22px 30px;
        border-radius: 16px;
    }

    .job-alert-copy {
        margin-bottom: 18px;
    }

    .job-alert-copy h2 {
        font-size: 20px;
    }

    .job-alert-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .job-alert-form {
        flex-direction: column;
        gap: 10px;
    }

    .job-alert-input {
        min-height: 54px;
        border-right: 1px solid rgba(255, 255, 255, 0.48);
        border-radius: 12px;
        padding: 0 16px;
    }

    .job-alert-submit {
        min-width: 0;
        min-height: 52px;
        border-radius: 12px;
    }

    .top-employer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .top-employer-tile {
        min-height: 102px;
        padding: 16px 14px;
    }

    .top-employer-tile img {
        max-height: 44px;
    }

    .search-box {
        padding: 15px;
    }

    .search-title {
        font-size: 16px;
    }

    .search-title strong {
        font-size: 18px;
    }

    .hero-banner-meta {
        left: 16px;
        right: 16px;
        bottom: 62px;
        min-height: 32px;
        justify-content: center;
        font-size: 11px;
    }

    .hero-banner-controls {
        inset: 0;
    }

    .hero-banner-arrow {
        width: 22%;
        padding: 0 12px;
        opacity: 0.6;
    }

    .btn-search,
    .btn-register {
        padding: 12px;
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .tabs {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .job-card {
        padding: 14px;
    }

    .company-logo {
        width: 62px;
        height: 62px;
    }

    .job-title {
        font-size: 14px;
    }

    .company-name {
        font-size: 13px;
    }

    .salary {
        font-size: 13px;
    }

    .location {
        font-size: 12px;
    }

    .badge-top,
    .badge-urgent {
        font-size: 10px;
        min-height: 24px;
        padding: 0 8px;
    }

    .category-tabs {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-column h4 {
        font-size: 13px;
    }

    .footer-column ul li a {
        font-size: 12px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .footer-badges img {
        height: 40px;
    }

    .login-dropdown {
        padding: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .social-login {
        gap: 8px;
    }

    .btn-social {
        padding: 10px;
        font-size: 12px;
    }

    .bot-chat {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .bot-chat img {
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .banner-title {
        font-size: 18px;
    }

    .search-title {
        font-size: 14px;
    }

    .search-title strong {
        font-size: 16px;
    }

    .btn-employer,
    .btn-candidate {
        padding: 6px 12px;
        font-size: 11px;
    }

    .chatbot-wrapper {
        width: 100% !important;
        height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
    }
}

/* ===== Login Dropdown ===== */
.login-dropdown-wrapper {
    position: relative;
}

.login-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    width: 400px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0s 0.2s, transform 0.2s ease;
    pointer-events: none;
}

.login-dropdown-wrapper.active .login-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0s 0s, transform 0.2s ease;
    pointer-events: auto;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-google {
    color: #4285F4;
}

.btn-facebook {
    color: #1877F2;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--medium-gray);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 12px;
    color: var(--text-gray);
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form .form-group {
    position: relative;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.1);
}

.password-group {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-gray);
    transition: var(--transition);
}

.btn-toggle-password:hover {
    color: var(--text-dark);
}

.forgot-password {
    color: var(--primary-teal);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    margin-top: -6px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    background: var(--dark-blue);
    color: var(--white);
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
}

.btn-login:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.register-prompt {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.register-prompt p {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 10px;
}

.btn-register {
    background: var(--primary-orange);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-register:hover {
    background: #E65A00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Shared Responsive Fixes ===== */
body.menu-open {
    overflow: hidden;
}

.header-content {
    position: relative;
}

.header-actions {
    flex-shrink: 0;
}

.nav-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        gap: 12px;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
    }

    .btn-employer {
        display: none;
    }

    .notification-link,
    .login-link,
    .user-menu-trigger,
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 10px;
    }

    .header-actions .action-label {
        display: none;
    }

    .user-chevron {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
        border: 1px solid var(--medium-gray);
        flex-shrink: 0;
    }

    .mobile-menu-btn.active {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
    }

    .mobile-menu-btn.active span {
        background: var(--white);
    }

    .nav {
        top: calc(100% + 10px);
        border: 1px solid var(--medium-gray);
        border-radius: 12px;
        z-index: 1100;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown .nav-link {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        background: var(--light-gray);
        border-radius: 8px;
        padding: 6px 0;
        margin: 4px 0 0;
    }

    .dropdown-item {
        padding: 10px 14px 10px 18px;
        white-space: normal;
    }

    .nav-mobile-only {
        display: block;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn-reset,
    .btn-advanced {
        width: 100%;
        justify-content: center;
        background: rgba(255, 255, 255, 0.35);
    }

    .feature-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }

    .login-dropdown {
        width: min(92vw, 350px);
        right: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 10px;
    }

    .notification-link,
    .login-link,
    .user-menu-trigger,
    .mobile-menu-btn {
        width: 38px;
        height: 38px;
    }

    .notif-badge {
        top: -2px;
        right: -2px;
    }

    .nav {
        left: 0;
        right: 0;
    }

    .search-box,
    .hero-banner {
        border-radius: 10px;
    }

    .feature-item {
        flex-basis: 100%;
        min-width: 0;
    }

    .job-card-header {
        align-items: flex-start;
    }

    .job-info {
        padding-right: 72px;
    }

    .badge-top {
        right: 12px;
        bottom: 12px;
    }

    .badge-urgent {
        right: 12px;
        bottom: 42px;
    }

    .login-dropdown {
        width: calc(100vw - 24px);
        right: -6px;
        padding: 18px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .job-info {
        padding-right: 0;
    }

    .job-card-header {
        padding-top: 0;
    }

    .badge-top,
    .badge-urgent {
        right: 10px;
    }
}