:root {
    --color-header-bg: #331a5c; /* Deep Black/Navy */
    --color-accent: #4a2582; /* Blue */
    --color-background: #f7f9fc; /* Light Gray */
    --color-text-dark: #1f2937;
    --color-text-light: #6b7280;
    --color-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --color-card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
    background-color: #fff;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
}
.name-img{
    height: 40px;
    width: 70px;
}
nav.scrolled .logo-text {
    color: #331a5c;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.scrolled .nav-links a {
    color: #331a5c;
}

.nav-links a:hover {
    color: #9c7bd8;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

nav.scrolled .menu-toggle {
    color: #331a5c;
}

/* Hero Section */
.hero {
    height: 35vh;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 40, 49, 0.555);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 80%;
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(46, 40, 49, 0.329);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo span {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.logo-img{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-position: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    color: #e0d6f5;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Content Section */
.content {
    padding: 10px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content h2 {
    font-size: 1.8rem;
    color: #331a5c;
    margin-bottom: 30px;
    text-align: center;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}






.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow-x: auto; 
    white-space: nowrap; 
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e6f0; 
    background-color: #ffffff;
    padding-top: 10px;
}

.nav-container::-webkit-scrollbar {
    height: 6px;
}

.nav-container::-webkit-scrollbar-thumb {
    background-color: #a0aec0;
    border-radius: 3px;
}
.nav-container {
    scrollbar-width: thin;
    scrollbar-color: #a0aec0 transparent;
}

.cclink {
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    font-size: 1rem;
    font-weight: 600; 
    color: #3182ce; 
    border-radius: 20px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #ebf4ff;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    text-decoration: none;
}
.cclink:hover {
    color: #ffffff; 
    background-color: #4c85c7; 
    box-shadow: 0 4px 10px rgba(76, 133, 199, 0.4); 
    transform: translateY(-1px);
}
.cclink.active {
    color: #ffffff;
    background-color: #3182ce;
    border-color: #3182ce;
}







.main-content {
    padding: 15px;
}

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

.listings-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.job-card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; 
}


@media (min-width: 640px) {
    .job-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (min-width: 1024px) {
    .job-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-links {
        display: flex;
    }
    .search-bar {
        flex-direction: row;
        gap: 1rem;
    }
}

.job-card {
    background-color: white;
    padding: 0.7rem;
    border-radius: 1rem;
    box-shadow: var(--color-shadow);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--color-card-hover-shadow);
    cursor: pointer;
}


.card-header-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
img{
    width: 100%;
    height: 100%;
}
.company-logo-new {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.logo-1 { background-color: #fee2e2; color: #ef4444;} 
.logo-2 { background-color: #e0f2f1; color: #059669;}
.logo-3 { background-color: #fef3c7; color: #facc15;}
.logo-4 { background-color: #ede9fe; color: #7c3aed;}

.job-info-block {
    flex-grow: 1;
}

.job-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: #331a5c;
}

.company-info {  
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.1rem;
    margin-bottom: 0px;
}

.applicant-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-align: right;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.tag-blue { background-color: #dbeafe; color: #2563eb; } 
.tag-green { background-color: #d1fae5; color: #059669; } 
.tag-red { background-color: #fee2e2; color: #ef4444; } 
.tag-purple { background-color: #ede9fe; color: #7c3aed; } 
.tag-orange { background-color: #fff7ed; color: #fb923c; } 

.job-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.salary {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
}

.post-time {
    font-size: 0.75rem;
    color: var(--color-text-light);
}