/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width:100%;
    height:100%;
    overflow-x:hidden;
}

body {
    margin:0;
    width:auto;
    min-height:100%;
    overflow-x:hidden;
    font-family:Arial, sans-serif;
    background:#f6f8fb;
    color:#222;
}


/* NAVBAR */

.navbar {
    width:100%;
    background:white;
    padding:20px 50px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 2px 10px #ddd;
}


.logo {
    font-size:26px;
    font-weight:bold;
}


.nav-links a {
    margin-left:20px;
    text-decoration:none;
    color:#333;
}



/* MAIN */

main {
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:40px 20px;
}



/* HERO */

.hero {

    width:100%;

    padding:60px 30px;

    background:white;
    border-radius:20px;

    text-align:center;

    overflow:hidden;
}


.hero h1 {
    overflow-wrap:anywhere;
}


.search input {

    width:100%;
    max-width:700px;

    padding:15px;
}



button,
.button {

    background:#222;
    color:white;

    padding:14px 25px;

    border-radius:10px;

    border:none;

}



/* CATEGORIES */

.categories {

    width:100%;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    margin-top:30px;
}


.category-card {

    width:100%;

    background:white;

    padding:30px 20px;

    border-radius:18px;

    text-align:center;

    font-size:18px;
    font-weight:bold;

    box-shadow:
    0 5px 15px rgba(0,0,0,0.05);
}




/* JOB */

.job-card {

    width:100%;

    background:white;

    padding:25px;

    margin:20px 0;

    border-radius:15px;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    flex-wrap:wrap;
}


.job-title {
    overflow-wrap:anywhere;
}


.job-button {

    display:flex;
    align-items:center;
    gap:10px;

    background:#2563eb;

    color:white;

    padding:12px 20px;

    border-radius:12px;

    text-decoration:none;

    max-width:100%;
}



/* EMAIL */

.email-box {

    background:white;

    padding:40px;

    margin-top:50px;

    border-radius:20px;
}




/* FOOTER */

.footer {

    width:100%;

    background:white;

    margin-top:80px;

    padding:40px 20px;

    border-top:1px solid #ddd;
}


.footer-content {

    width:100%;
    max-width:1100px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    gap:40px;

}




.cv-promo {

    background:#f1f5ff;

    padding:25px;

    border-radius:20px;

    max-width:420px;
}





/* MOBILE */

@media(max-width:700px){


    .navbar {

        padding:20px;

        flex-direction:column;

        gap:15px;

    }


    .nav-links {

        display:flex;
        gap:15px;

    }


    .nav-links a {
        margin:0;
    }



    main {

        padding:20px;
    }



    .hero {

        padding:30px 20px;
    }



    .categories {

        grid-template-columns:1fr;

    }



    .job-card {

        flex-direction:column;

    }


    .job-button {

        width:100%;
        justify-content:center;

    }



    .footer-content {

        flex-direction:column;
        text-align:center;

    }


    .creator-area {

        display:none;
    }

}


/* FINAL MOBILE WIDTH FIX */

html,
body {
    width:auto;
    max-width:100%;
    overflow-x:hidden;
}


body {
    position:relative;
}


.navbar,
.footer {
    width:100%;
    max-width:none;
    overflow:hidden;
    box-sizing:border-box;
}


main {
    width:100%;
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
}


.hero,
.categories-section,
.email-box,
.job-card,
.categories {
    max-width:100%;
    box-sizing:border-box;
}


* {
    min-width:0;
}


@media(max-width:700px){

    .navbar {
        width:100%;
        padding:20px;
    }


    .footer {
        width:100%;
        padding:30px 15px;
    }


    main {
        width:100%;
        padding:20px;
    }


    .categories {
        grid-template-columns:1fr;
    }

}