@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter"; /* font-family is inherited */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    box-sizing: border-box;
    padding: 60px 0 150px;
    margin: 0 auto 100px;
    width: 90%;
    max-width: 1270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.main-container > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5em;
}

.main-container > h1:nth-of-type(2) {
    margin-top: 100px;
}

.all-tests-container {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 70px;
}

.test-container {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 7px;
}

.test-title {
    box-sizing: border-box;
    padding: 6px 15px 6px 30px;
    margin: 0;
    width: 100%;
    background-color: rgba(11, 64, 8, 0.82);
}

.test-title > h2 {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6em;
}

.test-contents {
    /* 1240px - test contents */
    box-sizing: border-box;
    padding: 4px 15px 0 10px;
    margin: 0 0 0 30px;
    border-left: 4px solid rgba(217, 217, 217, 1);
    display: flex;
    flex-direction: column;
}

.test-contents > p {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 2em;
}

.test-contents > ul {
    box-sizing: border-box;
    padding: 0;
    margin: 5px 0 0 30px;
}

.test-contents > ul li {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    line-height: 2em;
}

.test-photos {
    box-sizing: border-box;
    padding: 0;
    margin: 30px auto 0;
    width: 100%;
    max-width: 1017.24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 1%;
}

.test-photos.cid, .test-photos.bpme {
    margin-top: 0;
}

.test-photos p {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
}

/* SOIL TEST & GROUTING */
.soil-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614px; /* 48.5% of 1,017.24px = 493.3614 */
}
.soil-test > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 616 / 464;
}
.soil-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* JET GROUTING */
.jet-grouting-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614px; /* 48.5% of 1,017.24px = 493.3614 */
}
.jet-grouting-test > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
}
.jet-grouting-test:first-child > .photo-img {
    aspect-ratio: 476 / 276;
}
.jet-grouting-test:nth-child(2) > .photo-img {
    aspect-ratio: 575 / 431;
}
.jet-grouting-test:nth-child(3) > .photo-img {
    margin-top: 6px;
    /* aspect-ratio: 1200 / 1600; */
    aspect-ratio: 575 / 431;
}
.jet-grouting-test:nth-child(4) > .photo-img {
    margin-top: 6px;
    /* aspect-ratio: 1200 / 1600; */
    aspect-ratio: 575 / 431;
}
.jet-grouting-test:nth-child(5) > .photo-img {
    margin-top: 6px;
    /* aspect-ratio: 1280 / 720; */
    aspect-ratio: 575 / 431;
}
.jet-grouting-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* DEEP CEMENT MIXING */
.cement-mixing-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614px; /* 48.5% of 1,017.24px = 493.3614 */
}
.cement-mixing-test > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1600 / 900;
}
.cement-mixing-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* SITE ASSESSMENT AND GEOTECHNICAL INVESTIGATION */
.saagi-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614px; /* 48.5% of 1,017.24px = 493.3614 */
}
.saagi-test:first-child > .photo-img,
.saagi-test:nth-child(2) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 854 / 641;
}
.saagi-test:nth-child(3) > .photo-img,
.saagi-test:nth-child(4) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 6px 0 0;
    width: 100%;
    /* aspect-ratio: 580 / 779; */
    aspect-ratio: 575 / 431;
}
.saagi-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* ANALYSIS AND DESIGN */
.aad-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
.aad-test:first-child {
    width: 35%;
    max-width: 356.034; /* 35% of 1,017.24px = 356.034 */
}
.aad-test:nth-child(2) {
    width: 62%;
    max-width: 630.6888; /* 62% of 1,017.24px = 630.6888 */
}
.aad-test:first-child > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    /* aspect-ratio: 235 / 717; */
    aspect-ratio: 235 / 300;
}
.aad-test:nth-child(2) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 649 / 464;
}
.aad-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* BORED PILING / MICROPILING EQUIPMENT */
.bpme-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 70%;
    max-width: 712.068px; /* 48.5% of 1,017.24px = 712.068 */
}
.bpme-test > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    aspect-ratio: 1113 / 692;
}
.bpme-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* CONSTRUCTION AND IMPLEMENTATION OF DESIGN */
.cid-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614px; /* 48.5% of 1,017.24px = 493.3614 */
}
.cid-test:first-child > .photo-img,
.cid-test:nth-child(2) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    /* aspect-ratio: 560 / 765; */
    aspect-ratio: 575 / 431;
}
.cid-test:nth-child(3) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 6px 0 0;
    width: 100%;
    /* aspect-ratio: 492 / 630; */
    aspect-ratio: 575 / 431;
}
.cid-test:nth-child(4) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 6px 0 0;
    width: 100%;
    /* aspect-ratio: 1080 / 810; */
    aspect-ratio: 575 / 431;
}
.cid-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

/* PILE TESTING */
.pile-test {
    /* dynamic width = 1,017.24px */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 48.5%;
    max-width: 493.3614;
}
.pile-test:first-child > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    /* aspect-ratio: 740 / 952; */
    aspect-ratio: 575 / 431;
}
.pile-test:nth-child(2) > .photo-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    /* aspect-ratio: 1080 / 810; */
    aspect-ratio: 575 / 431;
}
.pile-test > .photo-img > img{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/**/

.table-of-contents {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 95%;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.table-of-contents > p {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    font-family: "Inter";
}

.contents-buttons {
    box-sizing: border-box;
    margin: 0;
    padding: 10px 15px;
    border-left: 1px solid rgba(11, 64, 8, 0.4);
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    align-items: flex-start;
}

.contents-buttons a {
    box-sizing: border-box;
    margin: 0;
    padding: 5px;
    font-family: "Inter";
    font-size: 16px;
    font-weight: 300;
    color: rgba(11, 64, 8, 1);
    cursor: pointer;
    line-height: 1.50em;
}

/* mobile screen */
@media (max-width: 1128px) {
    .main-container {
        width: 95%;
        max-width: 1071.6px;
    }
    .main-container > h1 {
        font-size: 28px;
    }
    .all-tests-container {
        gap: 40px;
    }
    .test-photos {
        margin-top: 10px;
    }
    .test-title > h2 {
        font-size: 18px;
    }
    .test-contents {
        margin-left: 15px;
    }
    .test-photos img {
        border-radius: 10px;
    }
    .first-photo {
        max-width: none;
    }
    .test-contents > p {
        font-size: 16px;
        line-height: 1.5em;
        word-spacing: 2px;
    }
    .test-contents > ul {
        margin-left: 20px;
    }
    .test-contents > ul li {
        font-size: 16px;
        line-height: 1.85em;
        word-spacing: 2px;
    }
}

@media (max-width: 700px) {
    .main-container > h1:nth-of-type(2) {
        margin-top: 50px;
    }
    .test-photos {
        flex-direction: column;
        width: 100%;
        row-gap: 7px;
    }
    .soil-test {
        max-width: none;
        width: 100%;
    }
    .jet-grouting-test {
        width: 100%;
        max-width: none;
    }
    .jet-grouting-test:nth-child(3) > .photo-img,
    .jet-grouting-test:nth-child(4) > .photo-img,
    .jet-grouting-test:nth-child(5) > .photo-img {
        margin-top: 0;
    }
    .cement-mixing-test {
        width: 100%;
        max-width: none;
    }
    .saagi-test {
        width: 100%;
        max-width: none;
    }
    .saagi-test:nth-child(3) > .photo-img,
    .saagi-test:nth-child(4) > .photo-img {
        margin-top: 0;
    }
    .aad-test:first-child,
    .aad-test:nth-child(2) {
        width: 70%;
        max-width: none;
    }
    .bpme-test {
        width: 100%;
        max-width: none;
    }
    .cid-test {
        width: 100%;
        max-width: none;
    }
    .cid-test:nth-child(3) > .photo-img,
    .cid-test:nth-child(4) > .photo-img {
        margin-top: 0;
    }
    .pile-test {
        width: 100%;
        max-width: none;
    }
}