@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    overflow-x: hidden;
  }

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2a2a2a;
    color: white;
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px; /* Ensure this is equal or greater than footer height */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

.navbar {
    background-color: #292929;
    display: flex; /* Use flexbox */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Align the logo to the left and links to the right */
    font-weight: 500;
    font-size: 18px;
    border-bottom: 2px solid #2946AA;
    padding: 0 20px; /* Add some horizontal padding */
}

.navbar .nav-links {
    display: flex; /* This will align the links next to each other */
    gap: 10px; /* This is the space between the navigation links, adjust as needed */
}

.navbar li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
    border-right: 2px solid #2946AA; /* The vertical line */
    padding-right: 20px;
    margin-right: 20px;
}
.navbar .brand-name {
    text-align: center; /* Center align the brand name container */
    padding-right: 50px;
}

.navbar .brand-name a {
    text-decoration: none; /* Removes the underline from the link */
    display: block; /* Makes sure that the container behaves like a block */
    color: #ffffff; /* Adjust the color as needed */
}

.navbar .brand-name .logo-top {
    font-size: 30px; /* Larger size for "GENERATE" */
    font-weight: 400; /* Makes the font bolder */
    letter-spacing: normal; /* Default letter spacing for "GENERATE" */
    text-transform: uppercase; /* Makes the text uppercase */
    line-height: 1; /* Adjust the line height to fit the design */
}

.navbar .brand-name .logo-bottom {
    font-size: 17px; /* Smaller size for "ROBOTICS" */
    font-weight: 500; /* Keeps it bold */
    letter-spacing: 10px; /* More spacing for "ROBOTICS" */
    text-transform: uppercase; /* Makes the text uppercase */
    line-height: 1.2; /* Adjust the line height to fit the design */
    margin-left: 9px;
}

.navbar .brand-name a:hover {
    text-decoration: none;
}

.navbar a {
    float: right;
    display: block;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 30px 20px;
    text-decoration: none;
}

.navbar a:hover {
    text-decoration: underline;
}

.main-content {
    position: relative; /* This provides a positioning context for absolutely positioned children */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    height: 400px;
    width: 100%;
}

.text-content { /* New style for text container */
    flex: 0.6; /* Take up remaining space */
    padding-left: 120px;
}

.bigbox {
    width: 65%;
    height: 400px;
    margin-right: 0px;
    background-color: rgb(155, 155, 155); /* Example background color */
    position: relative; /* Needed if you want to stack elements with z-index */
    z-index: 1; /* Higher z-index means it will be stacked on top */
}

.bigbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    position: absolute; /* Absolutely position it within .main-content */
    top: 90%; /* Center vertically within .main-content */
    left: 40%; /* Center horizontally within .main-content */
    transform: translate(-50%, -50%); /* Center the .logo based on its own size */
    width: 500px;
    height: 200px;
    background-color: #ddd; /* Placeholder color for the logo */
    z-index: 2; /* Ensures the logo is on top of the bigbox */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro {
    margin: 120px;
    margin-bottom: 0px;
}

.button {
    background-color: white; /* Green */
    border: 2px solid #2946AA;
    color: black; 
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
  }

.button:hover {
background-color: #2946AA;
color: white;
}

.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #2946AA;
    padding: 10px;
    text-align: center;
    color: white;
}

/* Media Query for Tablets */
@media screen and (max-width: 768px) {
    .navbar .nav-links, .navbar a {
        font-size: 16px;
        padding: 20px 10px;
    }

    .text-content {
        padding: 0 20px;
    }

    .container {
        flex-direction: column; /* Stack the feature boxes on top of each other */
        align-items: center; /* Center-align the stacked feature boxes */
    }

    .feature {
        width: 80%; /* Adjust the width to fit mobile screens, change as needed */
        margin-bottom: 20px; /* Add some space between stacked feature boxes */
    }

    .text-content {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 32px;
    }

}

.hamburger-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
}


header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid hsl(0, 0%, 80%);
}

.logo {
    max-width: 300px;
    /* Adjust as per your actual logo size */
}

section select {
    margin-right: 10px;
    border-radius: 10px;
    padding: 10px;
}

.filter-section label,
.filter-section select {
    margin-right: 10px;
}

.filter-section {
    padding: 25px 0 25px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 50px;
}

main {
    width: 80%;
    margin: auto;
    padding: 20px;
    padding-top: 0;
    padding-bottom: 350px;
}

h2 {
    color: #ffffff;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.job-listing {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
}

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

.job-title {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.job-details {
    font-size: 0.9em;
    color: #666;
    padding: 10px 0;
}
.location{
    font-weight: 500;
    font-size: 16px;
}

.job-type {
    font-weight: bold;
    color: #4a90e2;
    background: #e8f0fe;
    padding: 3px 6px;
    border-radius: 4px;
}

.job-details img{
    height: 16px;
    vertical-align: middle;
    padding-right: 4px;
    padding-bottom: 4px;
}

.type {
    font-weight: bold;
    color: #1faa57;
    background: #e8feee;
    padding: 3px 6px;
    border-radius: 4px;
}

.learn-more {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    position: absolute;
    right: 20px;
    top: 50px;
}

.learn-more:hover {
    background-color: #3c7ab7;
}

/* Media Query for Tablets (devices less than 768px wide) */
@media screen and (max-width: 768px) {
    .filter-section {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .filter-section label, .filter-section select {
        width: 100%; /* Make labels and selects take half width */
        margin-bottom: 10px; /* Add some space between the rows */
    }

    .job-listing {
        display: flex;
        flex-direction: column; /* Arrange items vertically */
        justify-content: space-between; /* Space between items, pushing the button to the bottom */
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .job-details {
    }

    .learn-more {
        margin-top: 10px; /* Add space above the 'Learn More' button */
        width: fit-content; /* Full width for better touch target */
        position: relative;
        right: 0;
        top: 0;
    }
}

/* Media Query for Mobile Devices (devices less than 480px wide) */
@media screen and (max-width: 480px) {
    .job-listing {
        padding: 20px; /* Adjust padding if necessary */
        position: relative; /* Ensures that the 'Learn More' button can be positioned with respect to its parent */
    }

    .job-title, .job-details {
        /* Make sure these don't interfere with the layout */
    }

    .job-details {
        display: block; /* Undo flexbox layout for job details */
    }

    .learn-more {
        width: fit-content; /* 100% of the parent width minus the padding */
        margin-top: 20px; /* Add some space above the button */
        position: absolute; /* Position the button absolutely within the job listing */
        bottom: 20px; /* Position the button at the bottom with 20px spacing */
    }

    .tags {
        display: flex; /* Use flex layout */
        flex-wrap: wrap; /* Allow tags to wrap onto the next line */
        gap: 4px; /* Adjust gap as needed, space between tags */
        align-items: center; /* Align tags vertically */
        justify-content: flex-start; /* Align tags to the start of the container */
        padding: 4px; /* Add padding to ensure there's space around the tags */
    }
}

@media screen and (max-width: 480px) {

    .job-description p {
        font-size: 14px;
    }

    .job-description ul, li {
        font-size: 14px;
    }
    
    .learn-more {
        position: relative;
        right: 0;
        top: 0;
    }

    .navbar {
        flex-direction: column; /* Stack navbar items vertically on small screens */
        align-items: flex-start; /* Align children to the start (left) */
        padding-left: 10px; /* 10px padding to the left for the entire navbar */
        padding-right: 10px; /* Padding to the right to maintain consistency */
    }

    .navbar .nav-links {
        flex-direction: column;
        display: none; /* Initially hidden on mobile */
    }

    .navbar .nav-links.active {
        display: flex; /* Shows the nav-links when active */
    }

    .main-content, .bigbox, .logo {
        flex-direction: column;
        width: 100%; /* Use full width for small devices */
    }

    .feature {
        max-width: 100%; /* Features take full width on small screens */
    }

    .hamburger-menu {
        display: flex; /* Show the hamburger menu */
    }

    .navbar .nav-links {
        display: none; /* Keeps nav-links hidden initially */
        width: 100%; /* Full width to align the links properly */
    }

    .navbar .brand-name {
        padding: 0; /* Reset padding to align the logo to the left */
        margin-left: 0; /* Reset margins to align the logo to the left */
    }

    .navbar .brand-name a {
        justify-content: flex-start; /* Aligns the link content to the left */
    }

    /* Correct the position of the hamburger menu on the right */
    .hamburger-menu {
        position: absolute;
        right: 32px; /* Aligns the menu to the right with 10px padding */
        top: 32px; /* Aligns the menu to the top with 10px padding */
    }

    .logo {
        top: 85%;
        width: 50%;
        left: 65%;
        height: 60%;
    }

    .text-content {
        padding-bottom: 20px;
    }

    .navbar .brand-name .logo-top {
        font-size: 26px;
        font-weight: 400;
        letter-spacing: normal;
        text-transform: uppercase;
        line-height: 1;
    }

    .navbar .brand-name .logo-bottom {
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 10px;
        text-transform: uppercase;
        line-height: 1.2;
        margin-left: 9px;
    }

    .intro {
        margin: 40px;
        margin-top: 80px;
    }
    
    /* Adjust button styling as needed */
    .button {
        width: 100%; /* Optional: make the button full width */
        margin: 10px 0; /* Add some margin to the top and bottom of the button */
    }
}

.job-description {
    display: none; /* Hide by default */
    /* Style your job description here */
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid #000000; /* Optional stylistic choice */
    color: black;
}

.show-description {
    display: block; /* Shows the job description */
}
