:root {
	--primary-color: #012169;
	--secondary-color: #3d5da5;
	--background-color: #f8fafc;
	--text-color: #1e293b;
	--gray-light: #e2e8f0;
	--gray-medium: #64748b;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

header {
	background-color: white;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
	position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    gap: 0.5rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

.search-container {
	margin: 2rem 0;
}

.search-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.form-group label {
	font-weight: 500;
	color: var(--text-color);
}

input, select {
	padding: 0.75rem;
	border: 1px solid var(--gray-light);
	border-radius: 6px;
	font-size: 1rem;
	width: 100%;
}

input:focus, select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
	background-color: var(--primary-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: background-color 0.2s;
}

button:hover {
	background-color: var(--secondary-color);
}

.jobs-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
    gap: 1rem; /* Space between cards */
    padding: 1rem 0;
}

.job-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%; /* Ensure all cards in a row are the same height */
    display: flex;
    flex-direction: column;
	margin: 0;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-company {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.job-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.job-meta span {
    line-height: 1.4;
}

.loading {
	text-align: center;
	padding: 2rem;
	color: var(--gray-medium);
}


.load-more-button {
    grid-column: 1 / -1; /* Makes the button span across all columns */
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.load-more-button:hover {
	background-color: var(--secondary-color);
}

.loading {
	text-align: center;
	padding: 2rem;
	color: var(--gray-medium);
}

.footer-social {
    display: flex;
    gap: 1rem;

}

.footer-social a {
    color: var(--gray-medium);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.site-footer {
    background-color: white;
    border-top: 1px solid var(--gray-light);
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-medium);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section.company-info {
    position: relative;
}

.footer-section.company-info h3 {
    width: 100%;
}

.footer-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.company-content {
    flex: 1;
}

.company-content p {
    margin-bottom: 1rem;
}

.company-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.company-logo img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-medium);
    font-size: 0.95rem;
}

.contact-info svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
	.search-form {
		grid-template-columns: 1fr;
	}

	.job-meta {
		flex-direction: column;
		gap: 0.5rem;
	}

	.container {
		padding: 0 0.75rem;
	}
	
	.jobs-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
	
	.footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .load-more-button {
        margin: 1.5rem auto;
    }
	
	.header-content {
        flex-wrap: nowrap; /* Prevent wrapping */
        justify-content: space-between; /* Space between logo and hamburger */
        padding: 0.75rem 0; /* Slightly reduce padding on mobile */
    }

    .header-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem); /* Position below header with some spacing */
        right: 0;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        min-width: 200px;
        z-index: 1000;
    }
	
	.header-nav.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
		padding: 0.75rem 1rem;
    }
	
	.logo {
        font-size: 1.25rem; /* Make logo slightly smaller on mobile */
    }

    .logo img {
        width: 30px; /* Make flag slightly smaller on mobile */
    }
	
	.mobile-menu-toggle {
        display: block;
        margin-left: 1rem; /* Add some space between logo and hamburger */
    }
	
	.company-logo {
        display: none;
    }

    .footer-content-wrapper {
        flex-direction: column;
    }

    .company-content {
        text-align: center;
    }
	
	.footer-social {
        justify-content: center;
    }

}

@media (max-width: 380px) {
    .header-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
	
	.logo {
        font-size: 1.1rem; /* Even smaller font for very small screens */
    }

    .logo img {
        width: 25px; /* Even smaller flag for very small screens */
    }
	
	.company-logo {
        display: none;
    }

}