:root {
    --primary-blue: #0f62fe;
    --primary-blue-hover: #0353e9;
    --bg-main: #f4f4f4;
    --bg-card: #ffffff;
    --text-main: #161616;
    --text-muted: #525252;
    --border-color: #e0e0e0;
    --danger: #da1e28;
    --success: #198038;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* === Top Header (Dark) === */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    padding: 10px 20px;
    color: #fff;
    gap: 15px;
}

.logo-white {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    white-space: nowrap;
}

.search-wrapper {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 3px 5px 3px 12px;
}

.search-icon {
    color: #888;
    margin-right: 8px;
    font-size: 0.9rem;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 0;
    font-size: 0.9rem;
    min-width: 50px;
}

.btn-search-pill {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
    color: #f0f0f0;
}

/* === Nav Header === */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.logo-blue {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-blue);
    display: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 5px 0;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.ccri-related {
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === Live Updates Box  === */
.live-updates-box {
    display: flex;
    align-items: center;
    background: #fff1f1;
    border: 1px solid #ffcccc;
    margin: 15px 20px;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.live-updates-content {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.update-text {
    display: inline-block;
    padding-left: 10px;
    animation: marquee 25s linear infinite;
}

.live-updates-content strong {
    color: var(--text-main);
    font-weight: 700;
    padding-right: 8px;
    z-index: 2;
    background: #fff1f1;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.divider {
    margin: 0 10px;
    color: #ccc;
}

.live-updates-controls {
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    padding-left: 10px;
    background: #fff1f1;
    z-index: 2;
}

/* === Trending Jobs === */
.trending-box {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trending-title {
    font-size: 0.95rem;
}

.trending-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.trending-tag:hover {
    background: #e0e0e0;
    color: #111;
}

/* === Main Dashboard Layout === */
.main-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 0 20px;
}

/* Cards Common */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.15rem;
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
}

.border-top-primary {
    border-top: 3px solid var(--primary-blue);
}

.border-top-danger {
    border-top: 3px solid var(--danger);
}

.border-top-success {
    border-top: 3px solid var(--success);
}

.bg-danger-light {
    background: #fffafa;
}

.bg-success-light {
    background: #f4fbf6;
}

.p-0 {
    padding: 0;
}

.p-3 {
    padding: 16px;
}

/* Detailed Jobs List */
.job-item-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.job-item-detailed:hover {
    background: #fcfcfc;
}

.job-item-detailed:last-child {
    border-bottom: none;
}

.job-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.job-item-info h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
}

.job-item-info p {
    margin: 0 0 3px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.job-item-action {
    flex-shrink: 0;
}

.btn-action-primary {
    background: #fff;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-action-primary:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* Dashboard Right */
.right-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.view-all-link {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-blue);
}

.view-all-link:hover {
    text-decoration: underline;
}

.card-body.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Mini Jobs */
.latest-jobs-mini .title-sm {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.mini-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 8px;
}

.mini-job-info .job-title-sm {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 600;
}

.mini-job-info .job-meta-sm {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-muted);
    padding-top: 2px;
}

.divider-line {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.px-3 {
    padding-left: 12px;
    padding-right: 12px;
}

.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.pt-2 {
    padding-top: 8px;
}

/* Categories */
.section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.icon-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.icon-grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.icon-card {
    background: #fafafa;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}

.icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-blue);
    background: #fff;
}

.icon-img {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.icon-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
    font-weight: 600;
}

.icon-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer-bottom-part {
    display: flex;
    background: #222;
    color: #fff;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col .text-main {
    color: #fff;
}

.footer-col .text-muted {
    color: #aaa;
}

.footer-col .text-primary {
    color: #4b8afb;
}

.footer-col .logo-blue {
    color: #fff;
    display: block;
}

.btn-outline-primary {
    border: 1px solid #4b8afb;
    color: #4b8afb;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #4b8afb;
    color: #fff;
}

.flex-gap {
    display: flex;
    gap: 10px;
}

.mt-4 {
    margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-header {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-white {
        font-size: 1.15rem;
    }

    .header-icons {
        display: none;
    }

    .search-wrapper {
        order: 3;
        min-width: 100%;
        border-radius: 8px;
        padding: 2px 2px 2px 10px;
    }

    .btn-search-pill {
        border-radius: 6px;
        padding: 6px 12px;
    }

    .nav-header {
        padding: 10px 12px;
        overflow-x: auto;
    }

    .nav-links {
        gap: 15px;
    }

    .live-updates-box {
        margin: 15px 12px;
    }

    .trending-box {
        padding: 0 12px;
    }

    .main-dashboard {
        grid-template-columns: 1fr;
        padding: 0 12px;
        gap: 15px;
    }

    .icon-grid-5,
    .icon-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 12px;
    }

    .footer-bottom-part {
        flex-direction: column;
        gap: 20px;
        padding: 25px 15px;
    }
}