/* Base Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --border-color: #e9ecef;
    --success-color: #4caf50;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--text-color);
}

p {
    color: var(--light-text);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-login {
    background-color: transparent;
    color: var(--text-color);
    margin-right: 10px;
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-apply {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
}

.btn-apply:hover {
    background-color: var(--secondary-color);
}

.btn-search {
    padding: 12px 24px;
    font-size: 16px;
}

/* Navigation */
.navbar {
    background-color: var(--card-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

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

.logo-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

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

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 8px;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    margin-right: 15px;
}

.search-input {
    padding: 10px 15px 10px 40px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--light-text);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .user-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 15px;
    }

    .search-container {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .btn-login, .btn-primary {
        width: 100%;
        margin: 5px 0;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.hero h1 span {
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.search-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Job Cards Container */
.job-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Job Card Styles */
.job-card {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-header {
    display: flex;
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    border: 1px solid var(--border-color);
    background-color: #f0f0f0; /* Fallback if no image */
}

.job-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.company-name {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.job-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-color);
    flex-grow: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posted-date {
    font-size: 12px;
    color: var(--light-text);
}

.btn-contact {
    background-color: var(--success-color);
    color: white;
    padding: 8px 16px;
    margin-right: 10px;
}

.btn-contact:hover {
    background-color: #3d8b40;
}

.no-jobs {
    text-align: center;
    padding: 20px;
    color: var(--light-text);
    font-size: 18px;
    grid-column: 1 / -1;
}

.btn-contact {
    background-color: var(--success-color);
    color: white;
    padding: 8px 16px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #3d8b40;
}

.job-footer > div {
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    background: #2b2d42;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
