* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F8FAFF;
    line-height: 1.6;
    color: #111827;
}

/* Navbar */
.navbar {
    background: #FFFFFF;
    color: #111827;
    padding: 0;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 52px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 10px;
}

.nav-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563EB;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563EB;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 2rem;
}

/* Button Design System */
.btn {
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-apply {
    background: linear-gradient(135deg, #2563EB, #8B5CF6, #2563EB);
    background-size: 200% 200%;
    animation: liveGradient 3s ease infinite;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-apply:hover {
    transform: scale(1.04);
    animation: liveGradient 1.5s ease infinite;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-apply:active {
    transform: scale(0.97);
}

.btn-learn {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: liveGradient 3.5s ease infinite;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(232, 74, 216, 0.25);
}

.btn-learn:hover {
    transform: scale(1.03);
    animation: liveGradient 2s ease infinite;
    box-shadow: 0 8px 20px rgba(232, 74, 216, 0.35);
}

.btn-learn-more {
    background: linear-gradient(135deg, #7B5CFA, #E84AD8);
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.35s ease;
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(232, 74, 216, 0.25);
}

.btn-learn-more:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #8A6CFF, #F05BE0);
    box-shadow: 0 8px 20px rgba(232, 74, 216, 0.35);
}

.btn-learn-more:active {
    transform: scale(0.97);
}

.btn-try {
    background: linear-gradient(
        135deg,
        #1bbf83,
        #f2c94c,
        #1bbf83
    );
    background-size: 200% 200%;
    animation: tryGradientFlow 4s ease infinite;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(27, 191, 131, 0.35);
}

.btn-try:hover {
    transform: scale(1.08);
    background: linear-gradient(
        135deg,
        #1bbf83,
        #f2c94c,
        #1bbf83
    );
    background-size: 200% 200%;
    box-shadow: 0 12px 30px rgba(242, 201, 76, 0.4);
}

@keyframes tryGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-try:active {
    transform: scale(0.97);
}

.on-dark .btn {
    filter: brightness(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.on-light .btn {
    filter: none;
}

/* Job Section */
.job-section h3 {
    margin-bottom: 1.5rem;
    color: #111827;
    font-size: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-count {
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.saved-jobs-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #F3F4F6;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #E5E7EB;
}

.job-card.removing {
    animation: slideOut 0.4s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-100%);
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        height: 0;
    }
}

.job-header {
    margin-bottom: 1rem;
}

.job-header h4 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.job-header .company {
    color: #6B7280;
    font-size: 1rem;
    font-weight: 500;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.job-meta span {
    background: #F9FAFB;
    color: #374151;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #E5E7EB;
}

.job-meta .location {
    background: #FEF3F2;
    color: #B91C1C;
    border-color: #FECACA;
}

.job-meta .experience {
    background: #F0F9FF;
    color: #1E40AF;
    border-color: #DBEAFE;
}

.job-meta .salary {
    background: #F0FDF4;
    color: #166534;
    border-color: #DCFCE7;
}

.job-skills {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.skill {
    background: #EEF2FF;
    color: #4338CA;
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #C7D2FE;
}

.job-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #F3F4F6;
}

.job-actions .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.job-actions .btn:active {
    transform: scale(0.98);
}

.job-actions .view-details-btn {
    background: linear-gradient(135deg, #4F46E5, #7C3AED, #4F46E5);
    background-size: 200% 200%;
    animation: royalGradientFlow 3.5s ease infinite;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.job-actions .view-details-btn:hover {
    transform: scale(1.05);
    animation: royalGradientFlow 2s ease infinite;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.job-actions .apply-btn {
    background: linear-gradient(135deg, #2563EB, #8B5CF6, #2563EB);
    background-size: 200% 200%;
    animation: liveGradient 3s ease infinite;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.job-actions .apply-btn:hover {
    transform: scale(1.05);
    animation: liveGradient 1.5s ease infinite;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.job-actions .apply-btn.applied {
    background: #10B981;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.8;
}

.job-actions .apply-btn.applied:hover {
    transform: none;
    animation: none;
}

.job-actions .saved-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.job-actions .saved-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: #111827;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state p {
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.empty-state .browse-btn {
    background: linear-gradient(135deg, #2563EB, #8B5CF6, #2563EB);
    background-size: 200% 200%;
    animation: liveGradient 3s ease infinite;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state .browse-btn:hover {
    transform: scale(1.05);
    animation: liveGradient 1.5s ease infinite;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.apply-btn {
    background: linear-gradient(135deg, #2563EB, #8B5CF6, #2563EB);
    background-size: 200% 200%;
    animation: liveGradient 3s ease infinite;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.35s ease;
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.apply-btn:hover {
    animation: liveGradient 1.5s ease infinite;
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.posted-date {
    color: #6B7280;
    font-size: 0.9rem;
}

/* Ads Section */
.ads-section h3 {
    margin-bottom: 1.5rem;
    color: #111827;
    font-size: 1.3rem;
}

.ad-card {
    background: white;
    border: 2px dashed #06B6D4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.ad-content h4 {
    color: #111827;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.ad-content p {
    color: #6B7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.apply-btn:active {
    transform: scale(0.97);
}

.ad-btn {
    background: linear-gradient(
        135deg,
        #FF6B35,
        #F7931E,
        #FF6B35
    );
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}

.ad-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(247, 147, 30, 0.5);
}

/* View Details Button - Royal + Soft Gradient Live Animation */
.view-details-btn {
    background: linear-gradient(
        135deg,
        #4F46E5,
        #7C3AED,
        #4F46E5
    ) !important;
    background-size: 200% 200% !important;
    animation: royalGradientFlow 3.5s ease infinite !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3) !important;
}

.view-details-btn:hover {
    transform: scale(1.06) !important;
    animation: royalGradientFlow 2s ease infinite !important;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45) !important;
}

/* Save Job Button - Live Animation */
.save-job-btn {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: liveGradient 3.5s ease infinite;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.25);
}

.save-job-btn:hover {
    transform: scale(1.05);
    animation: liveGradient 2s ease infinite;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.4);
}

.save-job-btn.saved {
    background: linear-gradient(135deg, #10B981, #059669, #10B981);
    background-size: 200% 200%;
    animation: liveGradient 3.5s ease infinite;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.save-job-btn.saved:hover {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

@keyframes royalGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes liveGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.ad-btn:active {
    transform: scale(0.97);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        gap: 8px;
        padding: 0 8px;
        height: 48px;
    }

    .nav-menu {
        display: none;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .job-meta span {
        font-size: 0.8rem;
    }

    .job-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

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

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state .icon {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }
}

/* Learn More button - Pink/Purple gradient */
.ad-card:nth-child(1) .ad-btn {
    background: linear-gradient(
        135deg,
        var(--learn-start),
        var(--learn-end),
        var(--learn-start)
    );
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}

.ad-card:nth-child(1) .ad-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

/* TRY NOW – Orange gradient */
.ad-card:nth-child(2) .ad-btn {
    background: linear-gradient(
        120deg,
        var(--try-start),
        var(--try-end),
        var(--try-start)
    );
    background-size: 250% 250%;
    animation: tryNowLive 4s ease infinite;
    box-shadow: 0 10px 26px rgba(251, 146, 60, 0.35);
}

.ad-card:nth-child(2) .ad-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.45);
}
.ad-card:nth-child(1) .ad-btn {
    background: linear-gradient(
        135deg,
        #FF6B35,
        #F7931E,
        #FF6B35
    );
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}

.ad-card:nth-child(1) .ad-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(247, 147, 30, 0.5);
}

/* TRY NOW – premium live button */
.ad-card:nth-child(2) .ad-btn {
    background: linear-gradient(
        120deg,
        #FF4081,
        #9C27B0,
        #FF4081
    );
    background-size: 250% 250%;
    animation: tryNowLive 4s ease infinite;
    box-shadow: 0 10px 26px rgba(255, 64, 129, 0.35);
}

.ad-card:nth-child(2) .ad-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 34px rgba(156, 39, 176, 0.45);
}

@keyframes tryNowLive {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}