* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8f9fa;
    color: #333;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

input, button {
    box-sizing: border-box;
}

.hero h1,
.slogan-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}


input[type="text"]::placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]::-webkit-input-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:-moz-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]::-moz-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:-ms-input-placeholder {
    font-family: 'Poppins', sans-serif;
}


input {
    font-family: 'Poppins', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="textarea"],
input[type="password"] {
    font-family: 'Poppins', sans-serif;
}


/* Base styles */
header {
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between; /* Space out logo and nav */
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080;
    flex: 1;
}

/* Default logo styling */
.logo-img {
    max-height: 60px; /* Set a fixed height for larger screens */
    width: auto;
}

.logo-modal-container {
    display: grid;
    margin-bottom: 20px;
    place-items: center; /* Centers both horizontally and vertically */
}

.logo-modal {
    max-width: 100%; /* Ensure it doesn't overflow */
    height: auto;    /* Maintain aspect ratio */
}

/*nav {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    position: relative; !* Keep this relative so it's positioned accordingly *!*/
/*    z-index: 100; !* Keep nav on top *!*/
/*}*/

 /*Default state for nav links */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Show links only on mobile when active */
nav.active {
    display: block;
}

nav a {
    margin: 10px 15px;
    font-size: 1.2rem;
    color: #004080;
    text-decoration: none;
    text-align: right; /* Align links to the right */
}

nav a:hover {
    color: #ff9f1c;
}

/* Hamburger icon styling */
.hamburger {
    display: none; /* Hide by default on desktop */
    cursor: pointer;
    width: 44px;
    height: 44px;
}

.hamburger .dot {
    width: 30px;
    height: 4px;
    background-color: #004080;
    margin: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}



.hero {
    text-align: center;
    padding: 60px 20px;
    background: #3470CA;
    color: white;
}

.hero h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.search-box {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.search-box input {
    padding: 12px;
    font-size: 1rem;
    width: 400px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0;
}

.searchbox input[type="text"] {
    margin-bottom: 0;
}


/* Button styles */
.search-box button {
    padding: 12px 20px;
    height: 100%;
    font-size: 18px;
    background-color: #ff9f1c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}


.search-box button:hover {
    background-color: #e88a00;
}


/*.search-box button {*/
/*    padding: 12px 20px;*/
/*    background-color: #ff9f1c;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 4px;*/
/*    font-weight: bold;*/
/*    cursor: pointer;*/
/*}*/


.quick-links {
    margin-top: 40px;
}

.quick-links a {
    display: inline-block;
    margin: 0 10px;
    color: white;
    font-weight: bold;
    text-decoration: underline;
}
.info-section {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background-image: url('../images/construction_site_background.jpeg'); /* replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); /* Dark overlay */
    z-index: 1;
}

.info-cards {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.card {
    /*background: white;*/
    background: rgba(255, 253, 253, 0.85); /* Dark overlay */

    color: #333;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    color: #3470CA;
}

.card p {
    font-size: 0.95rem;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #ff9f1c;
    font-weight: bold;
    text-decoration: none;
}

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

.container {
    max-width: 500px;
    margin: 30px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toggle-buttons {
    display: flex;
}

.toggle-buttons button {
    flex: 1;
    padding: 15px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    background: #eee;
    transition: background 0.3s;
}

.toggle-buttons button.active {
    background: #3470CA;
    color: white;
}

.form-section {
    padding: 20px;
    display: none;
}

.form-section.active {
    display: block;
}

form {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password-strength {
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

button[type="submit"] {
    padding: 12px;
    background-color: #ff9f1c;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #e88a00;
}

footer {
    background: #3470CA;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

/* Modal box */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #004080;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #003060;
}

/* Close button */
.close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

#employerForm input[type="text"] { margin-bottom: 12px; }
#employerForm input[type="email"] { margin-bottom: 12px; }
#employerForm input[type="password"] { margin-bottom: 15px; }

#applicantForm input[type="text"] { margin-bottom: 12px; }
#applicantForm input[type="email"] { margin-bottom: 12px; }
#applicantForm input[type="password"] { margin-bottom: 15px; }

/* Password wrapper to ensure the button is positioned correctly */
.password-wrapper {
    position: relative;
    width: 100%; /* Ensure the wrapper takes up the full width */
}

.password-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 40px; /* Adjust padding to make space for the button */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensure padding doesn’t mess with the width */
}

.password-wrapper button:hover {
    background-color: transparent;
}

.toggle-password {
    position: absolute;
    right: 10px; /* Adjust this to move the button closer or farther */
    top: 50%;
    transform: translateY(-50%); /* Vertically center the button */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px; /* Width of the button to fit the icon */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Make sure it stays on top */
}

.toggle-password svg {
    width: 100%; /* Ensure the SVG icon fills the button */
    height: 100%;
    fill: #555; /* Set color for the icon */
    transition: fill 0.3s ease;
}

.toggle-password:hover {
    background: transparent; /* Ensure the background doesn't change */
}

.password-wrapper button {
    background-color: #f9f9f9;
    background: transparent;
    position: absolute;
    right: 10px; /* Adjust this to move the button closer or farther */
    top: 50%;
    transform: translateY(-50%); /* Vertically center the button */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px; /* Width of the button to fit the icon */
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Make sure it stays on top */
}

/* Optional: if you want the button to be a little larger when hovered */
.toggle-password:focus,
.toggle-password:active {
    outline: none; /* Remove outline if not needed */
}

/* Optional: Change color of input field when button is hovered */
.password-wrapper input:focus {
    border-color: #007BFF;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 10px;
}

.forgot-password a {
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: left;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.register-link a {
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}
.slogan-section {
    text-align: center;
    padding: 80px 20px;
    background-color: #f3f6fc; /* or any light section background */
}

.slogan-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #004080; /* or your brand primary */
    margin: 0;
    line-height: 1.3;
}

.slogan-text span {
    color: #ff9f1c; /* accent color to highlight "Smart Matches" */
}

.error {
    color: #ae2f2f;
}

ul {
    list-style-type: none;
}

.form-error {
    color: #b30000;                /* Red text */
    background-color: #ffe6e6;     /* Light red background */
    border: 1px solid #b30000;     /* Red border */
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}


.input-icon-wrapper {
    position: relative;
    display: inline-block;
    height: auto;
    width: 100%;
}

.input-icon-wrapper input {
    padding: 16px 20px 16px 40px;
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-icon-wrapper input:focus {
    border-color: #2557a7;
    box-shadow: 0 0 0 2px rgba(37, 87, 167, 0.2);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    pointer-events: none;
    display: block;
}

.search-bar {
    display: inline-block;
    width: 100%;
    max-width: 100%;
}


/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .input-icon {
        left: 36px;
    }
    .search-btn {
        flex: 0 0 auto;
        align-self: flex-end;
    }

    .hero {
        padding: 40px 15px;
    }

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

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .input-group {
        width: 100%;
        max-width: 90%;
        margin-bottom: 10px;
    }

    .search-box input {
        width: 100%;
        max-width: 90%;
    }

    .search-box button {
        width: 100%;
        max-width: 90%;
    }

    .quick-links a {
        display: block;
        margin: 10px 0;
    }

    .info-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .slogan-text {
        font-size: 1.8rem;
    }
    nav {
        display: none; /* Hide default desktop nav on mobile */
    }

    /* Show the hamburger icon on mobile */
    .hamburger {
        display: block; /* Show hamburger icon on mobile */
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: absolute;
        top: 15px; /* Position it at the top */
        right: 10px; /* Position it on the right side */
        z-index: 110; /* Ensure it's above other content */
        transition: transform 0.3s ease;
    }

    /* Dots in hamburger menu */
    .hamburger .dot {
        width: 5px;
        height: 5px;
        background-color: #004080;
        border-radius: 50%;
        transition: background-color 0.3s, transform 0.3s ease;
        display: block;
        margin: 3px auto;
    }

    /* Change hamburger to X when active */
    nav.active .hamburger .dot:nth-child(1) {
        transform: rotate(45deg);
        position: absolute;
    }

    nav.active .hamburger .dot:nth-child(2) {
        opacity: 0; /* Hide middle dot */
    }

    nav.active .hamburger .dot:nth-child(3) {
        transform: rotate(-45deg);
        position: absolute;
    }

    nav.active {
        display: flex; /* Show the mobile menu when active */
        flex-direction: column;
        justify-content: center;
        align-items: flex-start; /* Align links to the left */
        background-color: #ffffff;
        padding-top: 10px;
        width: 100%;
        height: 100vh; /* Full screen for mobile menu */
        opacity: 1;
        visibility: visible;
    }

    nav a {
        margin: 10px 15px;
        font-size: 1.5rem;
        color: #004080;
        text-decoration: none;
        text-align: left; /* Left align on mobile */
    }

    .logo {
        order: 1; /* Ensure the logo stays on the left */
    }

    /* Ensure header layout is properly adjusted for small screens */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    .logo-img {
        max-width: 100%; /* Prevent logo from taking too much width */
        padding-top: 15px;
    }

    /* Adjust for the hamburger on the mobile view */
    .hamburger .bar {
        width: 100%;
        height: 4px;
        background-color: #004080;
        border-radius: 5px;
    }

    .hamburger .dot {
        width: 5px;
        height: 5px;
        background-color: #004080;
        border-radius: 50%;
        transition: background-color 0.3s;
    }
}