* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #ffffff;
    color: #111111;
    font-family: "Roboto", Arial, sans-serif;
}

.shipyard-page {
    width: 100%;
    padding: 12px 0 35px;
}

.shipyard-container {
    width: 912px;
    max-width: 94%;
    margin: 0 auto;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.shipyard-main-title {
    margin: 0 0 15px;

    color: #f01812;

    font-size: 28px;
    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   CATEGORY
========================================================= */

.shipyard-category {
    width: 100%;
    margin-bottom: 12px;
}

.shipyard-category-title {
    width: 100%;

    margin: 0 0 8px;

    padding: 2px 5px;

    background: #b5e4df;

    color: #111111;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.15;

    text-align: center;
}


/* =========================================================
   GRID
========================================================= */

.shipyard-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 0;

    border-top: 1px solid #222222;
    border-left: 1px solid #222222;
}


/* =========================================================
   CARD
========================================================= */

.shipyard-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    min-height: 263px;

    padding: 8px;

    background: #ffffff;

    border-right: 1px solid #222222;
    border-bottom: 1px solid #222222;
}


/* =========================================================
   IMAGE
========================================================= */

.shipyard-card img {
    display: block;

    width: 100%;
    height: 125px;

    object-fit: cover;
    object-position: center;

    border-radius: 14px;
}


/* =========================================================
   JOB TITLE
========================================================= */

.shipyard-card h3 {
    min-height: 59px;

    display: flex;
    align-items: flex-start;

    margin: 10px 0 8px;

    padding: 0 0 8px;

    border-bottom: 1px solid #222222;

    color: #111111;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.15;
}


/* =========================================================
   APPLY BUTTON
========================================================= */

.shipyard-apply {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 32px;

    margin-top: auto;

    background: #1262e5;
    color: #ffffff;

    border-radius: 15px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
}

.shipyard-apply:hover {
    background: #0753c5;
}


/* =========================================================
   BOTTOM NAV
========================================================= */

.shipyard-bottom {
    display: flex;

    justify-content: space-between;

    margin-top: 35px;
}

.shipyard-bottom a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 115px;
    height: 39px;

    padding: 0 15px;

    background: #0870e8;
    color: #ffffff;

    border: 2px solid #000000;
    border-radius: 11px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .shipyard-container {
        width: 92%;
    }

    .shipyard-category-title {
        font-size: 23px;
    }

    .shipyard-card {
        min-height: 245px;
    }

    .shipyard-card img {
        height: 115px;
    }

    .shipyard-card h3 {
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .shipyard-main-title {
        font-size: 21px;
    }

    .shipyard-category-title {
        font-size: 20px;
    }

    .shipyard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shipyard-card {
        min-height: 235px;
    }

    .shipyard-card img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .shipyard-card h3 {
        min-height: 55px;
        font-size: 13px;
    }

    .shipyard-apply {
        height: 34px;
    }
}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 430px) {

    .shipyard-grid {
        grid-template-columns: 1fr;
    }

    .shipyard-card {
        min-height: 280px;
    }

    .shipyard-card img {
        aspect-ratio: 16 / 10;
    }

    .shipyard-card h3 {
        font-size: 14px;
    }

    .shipyard-bottom {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
