/* Basic Reset and Font Imports */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

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

.logo img {
    height: 48px;
    margin-right: 10px;
}

.logo span {
    font-weight: bold;
    font-size: 1.2rem;
}

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

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.main-nav a:hover {
    color: #007bff;
}

/* Hamburger menu button - Hidden on desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(90deg, #fceabb 0%, #f8b500 100%);
    text-align: center;
    padding: 6rem 1rem;
    border-radius: 10px;
    margin: 2rem;
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

/* Pseudo-element for the floating diamonds */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><rect x="5" y="5" width="10" height="10" fill="rgba(255,255,255,0.2)" transform="rotate(45 10 10)" /></svg>');
    background-repeat: repeat;
    animation: floatingDiamonds 20s linear infinite;
    z-index: 0;
}

/* Keyframes for the floating diamond animation */
@keyframes floatingDiamonds {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* Existing animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.5s;
    z-index: 1;
    position: relative;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: 1s;
    z-index: 1;
    position: relative;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}

.search-bar .search-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}

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

/* Main Content Area */
.job-listings-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.sidebar {
    flex-basis: 250px;
    flex-shrink: 0;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latest-jobs h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.latest-jobs ul {
    list-style: none;
}

.latest-jobs li {
    padding: 0.5rem 0;
}

.latest-jobs a {
    text-decoration: none;
    color: #555;
}

.latest-jobs a:hover {
    color: #007bff;
}

.job-cards-section {
    flex-grow: 1;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.job-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.job-card p {
    color: #777;
    margin-bottom: 0.25rem;
}

.view-details-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
}

.view-details-btn:hover {
    background-color: #218838;
}

/* ---------------------------------------------------- */
/* Mobile Responsiveness (Media Queries) */
/* ---------------------------------------------------- */

@media (max-width: 768px) {
    /* Header */
    .header-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .hamburger-menu {
        display: block; /* Show the hamburger button */
        position: relative;
        z-index: 100;
        color: #333;
    }
    
    .main-nav {
        display: none; /* Hide the navigation by default */
        flex-direction: column;
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        background-color: #fff;
        padding: 60px 20px 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .main-nav.active {
        display: flex; /* Show the navigation when active */
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    /* Main Content */
    .hero-section {
        padding: 4rem 1rem;
        margin: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .job-listings-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .job-cards-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 1rem;
    }
}

