:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle,
.mobile-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-toggle:hover,
.mobile-menu:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
}

.search-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 1rem;
    display: none;
}

.search-bar.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.search-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.popular-searches {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.popular-searches span {
    font-weight: 600;
}

.popular-searches a {
    color: white;
    text-decoration: none;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: var(--transition);
}

.popular-searches a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ad Spaces */
.ad-leaderboard,
.ad-between,
.ad-content,
.sidebar-ad,
.ad-inline {
    margin: 2rem auto;
    text-align: center;
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Jobs Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
}

.view-all {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-dark);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.job-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.job-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.job-card:hover .job-image {
    transform: scale(1.05);
}

.job-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.job-card-body {
    padding: 1.5rem;
}

.job-card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.job-card-body h3 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.job-card-body h3 a:hover {
    color: var(--primary-color);
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.job-meta i {
    margin-right: 0.25rem;
}

.job-description {
    color: var(--secondary-color);
    line-height: 1.6;
}

.job-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.job-date {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.job-date i {
    margin-right: 0.25rem;
}

.btn-apply {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-apply:hover {
    background: var(--primary-dark);
}

/* Jobs List View */
.jobs-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.job-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.job-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.job-list-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.job-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-list-content {
    flex: 1;
}

.job-list-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.job-list-content h3 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.job-list-content h3 a:hover {
    color: var(--primary-color);
}

.job-list-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.job-list-meta i {
    margin-right: 0.25rem;
}

.job-list-description {
    color: var(--secondary-color);
    line-height: 1.6;
}

.job-list-action {
    display: flex;
    align-items: center;
}

.btn-outline {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Categories Section */
.categories-section {
    padding: 4rem 20px;
    background: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: white;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.job-count {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Job Details Page */
.job-details {
    padding: 3rem 0;
}

.job-details-header {
    margin-bottom: 2rem;
}

.job-details-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.job-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-details-title h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--gray-color);
}

.job-details-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.job-details-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.job-main-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.full-topic-content {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    line-height: 1.8;
}

.job-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.job-overview {
    list-style: none;
}

.job-overview li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.job-overview li:last-child {
    border-bottom: none;
}

.job-overview i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.related-jobs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-job {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark-color);
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.related-job:hover {
    background: var(--light-color);
}

.related-job-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-job-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.related-job-info span {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Categories Page */
.categories-page {
    padding: 3rem 0;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.categories-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: white;
}

.category-list a:hover .count,
.category-list a.active .count {
    color: white;
}

.count {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.category-job-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-job-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.category-job-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.category-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-job-info {
    flex: 1;
}

.category-job-info h3 {
    margin-bottom: 0.5rem;
}

.category-job-info h3 a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.category-job-info h3 a:hover {
    color: var(--primary-color);
}

.category-job-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.category-job-meta i {
    margin-right: 0.25rem;
}

.category-job-action {
    display: flex;
    align-items: center;
}

.select-category-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-color);
    border-radius: 12px;
}

.select-category-message i {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.select-category-message h2 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.select-category-message p {
    color: var(--gray-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-color);
    border-radius: 12px;
}

.no-results i {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.no-results p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 20px 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    text-decoration: none;
    color: var(--gray-color);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: var(--gray-color);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .job-details-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-list-item {
        flex-direction: column;
    }
    
    .job-list-image {
        width: 100%;
        height: 150px;
    }
    
    .job-list-action {
        justify-content: flex-end;
    }
    
    .categories-layout {
        grid-template-columns: 1fr;
    }
    
    .job-details-image {
        height: 250px;
    }
    
    .job-details-title h1 {
        font-size: 2rem;
    }
    
    .job-details-meta {
        gap: 1rem;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .category-job-item {
        flex-direction: column;
    }
    
    .category-job-image {
        width: 100%;
        height: 150px;
    }
    
    .category-job-action {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .job-details-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-list-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}