.underline {
    width: 3vw;
    border: 0.2vw solid red;
}

/* =========== HERO =========== */
.slider {
    position: relative;
    width: 100%;
    height: 70vh;
    margin-bottom: 2vw;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.caption {
    position: absolute;
    top: 25%;
    left: 5%;
    color: white;
    min-width: 55vw;
    font-size: 1.2vw;
}

.caption h1 {
    font-size: 4vw;
    padding-bottom: 1.6vw;
}

.actions {
    margin: 3.2vw 0;
    transition: 0.3s ease;
}

.actions a {
    font-size: 1vw;
    text-decoration: none;
    border-radius: 1.6vw;
    padding: 0.8vw 1vw;
    color: black;
    background-color: #18a0fb;
    box-shadow: 0.2vw 0.2vw 1vw rgba(0, 0, 0, 0.7);
    transition: 0.3s ease;
}

.actions a:hover {
    background-color: #1585cf;
}

.actions:hover {
    transform: translateY(-0.2vw);
}

/* =========== MILLING & DRILLING TIMELINE =========== */

.md-timeline {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4% 12%;
    margin-bottom: 5vw;
}

.md-timeline h1 {
    text-align: center;
    font-size: 3.2vw;
}

.md_underline {
    margin: 0 auto 4vw;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 3vw;
    left: 0.5vw;
    width: 0.3vw;
    height: calc(100% - 3vw);
    background-color: red;
}

.timeline-item {
    font-size: 1.1vw;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2.4vw;
    font-weight: 700;
    color: red;
}

.timeline-item {
    max-width: 1600px;
    margin: 0 auto 5vw;
    position: relative;
    padding-left: 6vw;
}

.timeline-columns>div {
    flex: 1 1 45%;
}

.timeline-item h2 {
    font-size: 2.4vw;
}

.timeline-item b {
    font-weight: 600;
}

.timeline_underline {
    margin-bottom: 1.6vw;
}

.section-intro {
    max-width: 1000px;
    margin-bottom: 2vw;
    line-height: 1.8vw;
}

.timeline-columns {
    display: flex;
    gap: 6%;
}

.timeline-columns p {
    line-height: 1.8vw;
}

.timeline-columns h3 {
    font-size: 1.4vw;
    margin-bottom: 0.4vw;
}

.timeline-columns ul {
    padding-left: 1.2vw;
}

.timeline-columns li {
    margin-bottom: 0.8vw;
}

.conclusion-text {
    max-width: 1000px;
    line-height: 1.8vw;
}

/* ========== MATERIALS ========== */
.materials {
    padding: 8% 12%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 5vw;
    background-color: #ededed;
}

.materials-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.materials h1 {
    font-size: 3vw;
    text-align: center;
}

.materials-underline {
    width: 4vw;
    margin: 0 auto 1vw;
}

.materials-intro {
    max-width: 80vw;
    margin: 0 auto 3vw;
    text-align: center;
    font-size: 1.2vw;
    line-height: 2.4vw;
    color: darkslategray;
}

.materials-table {
    border-top: 0.2vw solid #cdcdcd;
}

.material-row {
    position: relative;
    border-bottom: 0.2vw solid #cdcdcd;
    padding: 2vw 1vw;
}

.material-row input {
    display: none;
}

.material-name {
    display: block;
    font-size: 1.6vw;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.material-name::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.6vw;
    transition: 0.2s ease;
}

.material-desc {
    max-height: 0vw;
    opacity: 0;
    font-size: 1.1vw;
    color: darkslategray;
    transition: 0.3s ease;
}

.material-row input:checked+.material-name::after {
    content: "-";
}

.material-row input:checked~.material-desc {
    max-height: 20vw;
    opacity: 1;
    margin-top: 1vw;
}

/* ========== ADVANTAGES / WHY US ========== */
.AnB {
    padding: 5%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 5vw;
    text-align: center;
}

.AnB-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.AnB h1 {
    font-size: 3.2vw;
    margin-bottom: 0.5vw;
}

.AnB-underline {
    width: 4vw;
    margin: 0 auto 1vw;
}

.AnB-intro {
    font-size: 1.2vw;
    line-height: 2.4vw;
    max-width: 80vw;
    margin: 0 auto 2vw auto;
}

.AnB-tabs {
    max-width: 70vw;
    margin: 0 auto;
}

.AnB-tabs input[type="radio"] {
    display: none;
}

.AnB-label {
    display: inline-block;
    font-size: 1.4vw;
    font-weight: 600;
    padding: 1vw 2vw;
    margin: 0 0.2vw 1vw 0;
    background-color: #e0e0e0;
    border-radius: 0.8vw;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.AnB-label:hover {
    background-color: #d0d0d0;
    transform: translateY(-0.3vw);
}

#tab1:checked~.tab1-content,
#tab2:checked~.tab2-content {
    display: block;
    animation: fadeSlide 0.4s ease;
}

#tab1:checked+.AnB-label,
#tab2:checked+.AnB-label {
    background-color: red;
    color: white;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 2vw;
    margin-top: 1vw;
    border-radius: 0.8vw;
    box-shadow: 0.3vw 0.3vw 1vw rgba(0, 0, 0, 0.3);
    font-size: 1.2vw;
    line-height: 2vw;
    text-align: left;
}

.tab-content ul {
    list-style: none;
}

.tab-content li {
    margin-bottom: 1.2vw;
    padding-left: 2vw;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-1vw);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FEATURED PROJECTS ================= */

.featured-projects {
    margin-bottom: 6vw;
    text-align: center;
}

.featured-projects-header h1 {
    font-size: 3.2vw;
}

.fp_underline {
    margin: 0 auto 3vw;
}

.projects-slide {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    animation: fadeSlide 0.5s ease;
}

.projects-slide.active {
    display: grid;
}

.projects-slide img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 1vw;
    object-fit: cover;
    box-shadow: 0.3vw 0.3vw 1vw rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-slide img:hover {
    transform: translateY(-0.4vw);
    box-shadow: 0.6vw 0.6vw 1.4vw rgba(0, 0, 0, 0.45);
}

/* ----- Controls ----- */

.projects-slider-controls {
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin-top: 3vw;
}

.projects-slider-controls button {
    font-size: 2.2vw;
    width: 4vw;
    height: 4vw;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: black;
    color: white;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.projects-slider-controls button:hover {
    background-color: red;
    transform: translateY(-0.2vw);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(1vw);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== CTA ========== */
.cta {
    padding: 10%;
    background-color: black;
    color: white;
    text-align: center;
}

.cta h1 {
    font-size: 3.2vw;
}

.cta-underline {
    width: 4vw;
    margin: 0 auto 2vw;
}

.cta p {
    font-size: 1.2vw;
    line-height: 2.4vw;
    max-width: 70vw;
    margin: 0 auto 3vw auto;
}

.cta-btn {
    display: inline-block;
    padding: 1.2vw 3vw;
    font-size: 1.4vw;
    font-weight: 600;
    color: white;
    background-color: red;
    border-radius: 3vw;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-0.3vw);
    background-color: rgb(222, 0, 0);
}

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media screen and (max-width: 768px) {

    .md-timeline,
    .materials,
    .AnB,
    .featured-projects {
        margin-bottom: 7vw;
    }

    .underline {
        width: 6vw;
        border: 0.4vw solid red;
    }

    /* ===== HERO ===== */
    .slider {
        min-height: 70vh;
        margin-bottom: 5vw;
    }

    .caption {
        top: 20%;
        left: 5%;
        min-width: 90vw;
    }

    .caption h1 {
        font-size: 7vw;
    }

    .caption h2 {
        font-size: 4vw;
    }

    .caption p {
        font-size: 3vw;
        line-height: 5.5vw;
    }

    .actions a {
        display: inline-block;
        font-size: 3vw;
        padding: 2vw 3vw;
        border-radius: 5vw;
        margin-bottom: 3vw;
    }

    /* ===== MILLING & DRILLING ==== */
    .md-timeline {
        padding: 6vw 8vw;
        margin-bottom: 8vw;
    }

    .md-timeline h1 {
        font-size: 6vw;
    }

    .md_underline {
        margin-bottom: 6vw;
    }

    .timeline-item {
        font-size: 3.5vw;
        max-width: 90vw;
        margin: 0 auto 6vw;
        padding-left: 12vw;
    }

    .timeline-item::before {
        top: 8vw;
        left: 1.6vw;
        width: 0.6vw;
        height: calc(100% - 10vw);
    }

    .timeline-number {
        font-size: 5vw;
        left: 0;
        top: 0;
    }

    .timeline-item h2 {
        font-size: 5vw;
    }

    .timeline_underline {
        margin-bottom: 5vw;
    }

    .timeline-columns {
        flex-direction: column;
        gap: 4vw;
    }

    .timeline-columns h3 {
        font-size: 4vw;
        margin-bottom: 3vw;
    }

    .timeline-columns p,
    .timeline-columns li,
    .section-intro,
    .conclusion-text {
        font-size: 3.5vw;
        line-height: 5vw;
        margin-bottom: 3vw;
        text-align: justify;
    }

    .timeline-columns ul {
        padding-left: 4vw;
    }

    /* ===== MATERIALS ===== */
    .materials h1 {
        font-size: 6vw;
    }

    .materials-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 4.8vw;
    }

    .material-name,
    .material-name::after {
        font-size: 3.2vw;
    }

    .material-desc {
        font-size: 2.4vw;
        line-height: 3.4vw;
    }

    /* ---------- ADVANTAGES /WHY US ---------- */
    .AnB h1 {
        font-size: 6vw;
    }

    .AnB-intro {
        text-align: justify;
        font-size: 3.2vw;
        line-height: 6vw;
    }

    .AnB-label {
        display: block;
        width: 100%;
        font-size: 4vw;
        padding: 3vw;
        margin-bottom: 2vw;
    }

    .tab-content {
        font-size: 3.4vw;
        line-height: 5.6vw;
        padding: 5vw;
    }

    .tab-content li {
        margin-bottom: 3vw;
    }

    /* ===== FEATURED PROJECTS ===== */

    .featured-projects-header h1 {
        font-size: 6vw;
    }

    .fp_underline {
        margin-bottom: 6vw;
    }

    .projects-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 4vw;
    }

    .projects-slide img {
        border-radius: 2vw;
    }

    .projects-slider-controls button {
        font-size: 5vw;
        width: 9vw;
        height: 9vw;
    }

    /* ---------- CTA ---------- */
    .cta h1 {
        font-size: 7vw;
    }

    .cta p {
        text-align: justify;
        font-size: 3.6vw;
        line-height: 6vw;
        max-width: 90vw;
    }

    .cta-btn {
        font-size: 4vw;
        padding: 3vw 8vw;
        border-radius: 8vw;
    }
}

/* ================= DESKTOP ================= */
@media screen and (min-width: 1920px) {

    .underline {
        width: 2vw;
        border: 0.1vw solid red;
    }

    /* ---------- HERO ---------- */
    .slider {
        height: 45rem;
    }

    .caption {
        left: 30rem;
    }

    .caption h1 {
        font-size: 3rem;
        line-height: 2.8rem;
    }

    .caption h2 {
        font-size: 2rem;
    }

    .caption p {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }

    .actions a {
        font-size: 1.4rem;
        padding: 1rem 1.6rem;
        border-radius: 1.6rem;
    }

    /* ===== MILLING & DRILLING ===== */
    .md-timeline {
        padding: 2rem auto;
        margin-bottom: 5rem;
    }

    .md-timeline h1 {
        font-size: 2.4rem;
        text-align: center;
    }

    .md_underline {
        margin: 0 auto 5rem;
    }

    .timeline-item {
        font-size: 1.1rem;
    }

    .timeline-number {
        left: 0.1rem;
        font-size: 2.6rem;
    }

    .timeline-item h2 {
        font-size: 2.4rem;
    }

    .timeline-columns h3 {
        font-size: 1.6rem;
    }

    .section-intro {
        max-width: unset;
        font-size: 1.2rem;
    }

    .timeline-columns p {
        line-height: 1.8rem;
        font-size: 1.2rem;
    }

    .timeline-columns ul {
        padding-left: 1.2rem;
    }

    .timeline-columns li {
        margin-bottom: 0.8rem;
    }

    .conclusion-text {
        max-width: unset;
        font-size: 1.2rem;
        line-height: 1.8rem;
    }

    /* ===== MATERIALS ===== */
    .materials h1 {
        font-size: 2.4rem;
    }

    .materials-intro {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .material-row {
        padding: 1.6rem 1.2rem;
    }

    .material-name,
    .material-name::after {
        font-size: 1.2rem;
    }

    .material-desc {
        font-size: 1.2rem;
        line-height: 1.8rem;
    }

    /* ---------- ADVANTAGES / WHY US ---------- */
    .AnB h1 {
        font-size: 2.4rem;
    }

    .AnB-intro {
        font-size: 1.2rem;
        line-height: 2rem;
        margin-bottom: 2rem;
    }

    .AnB-label {
        font-size: 1.2rem;
        padding: 1rem 1.6rem;
    }

    .tab-content {
        font-size: 1.2rem;
        line-height: 1.6rem;
        padding: 1.2rem;
    }

    /* ---------- FEATURED PROJECTS ---------- */

    .featured-projects {
        margin-bottom: 4rem;
    }

    .featured-projects-header h1 {
        font-size: 2.4rem;
    }

    .projects-slide.active {
        gap: 2.5rem;
    }

    .projects-slide img {
        width: 100%;
        border-radius: 1rem;
    }

    .projects-slider-controls {
        gap: 2rem;
        margin-top: 3rem;
    }

    .projects-slider-controls button {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }

    /* ---------- CTA ---------- */
    .cta {
        padding: 10rem;
    }

    .cta h1 {
        font-size: 3rem;
    }

    .cta p {
        font-size: 1.2rem;
        line-height: 2rem;
        max-width: 60rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 1.6rem;
    }

}
