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

:root {
    --primary-color: #0b224c; /* Dark blue from logo */
    --secondary-color: #e44d3a; /* Red from logo */
    --bg-light: #f4f7f6;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    color: #fff;
}

h2 {
    font-size: 2rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

p {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #081a3a;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

.btn-search {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
    font-size: 1rem;
    padding: 14px 25px;
}

.btn-search:hover {
    background-color: #c93b2a;
}

.btn-details {
    padding: 8px 15px;
    background-color: #e4eaf0;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: auto; /* Push to bottom */
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-image {
    height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

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

.nav-links a {
    font-weight: 500;
    padding: 5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons a {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1010;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(11, 34, 76, 0.8), rgba(11, 34, 76, 0.8)), url('https://images.unsplash.com/photo-1517430154028-2d837775a7a7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    gap: 10px;
}

.form-group input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}


/* Featured Jobs Section */
.featured-jobs-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.job-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.job-title {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.job-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 50px;
    color: #fff;
}

.new-badge {
    background-color: #4caf50;
}

.featured-badge {
    background-color: var(--secondary-color);
}

.job-company, .job-location {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.job-details {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.job-details p {
    margin-bottom: 5px;
}

.view-all-jobs {
    text-align: center;
    margin-top: 40px;
}


/* Footer Section */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Makes the logo white for contrast */
}

.footer-about p {
    color: #c9d0d9;
    margin-bottom: 15px;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

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

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links a, .footer-contact p {
    color: #c9d0d9;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid #1a325d;
    padding-top: 20px;
    text-align: center;
    color: #c9d0d9;
}


/* Animations & Media Queries */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
    }
    .main-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 10px;
    }
    .main-nav.active {
        max-height: 300px; /* Adjust based on content */
    }
    .nav-links {
        flex-direction: column;
        margin-right: 0;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .auth-buttons {
        margin-top: 15px;
    }
    .nav-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .form-group {
        flex-direction: column;
    }
    .form-group input, .btn-search {
        width: 100%;
    }
}