p.tertiary-b,
p.category {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--tertiary);
}


.wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(100px, 14vw, 200px);
}

.title {
    background-image:
        linear-gradient(to top,
            var(--black-50),
            /* Black, 70% opaque at the bottom */
            var(--black-50))
        /* Black, 0% opaque (transparent) at the top */
        ,
        /* 2. List your image URL SECOND */
        url(../images/header-brew-coffee-tutorial.jpg);
}


/*Section 1*/
div.our-signature-coffee--section-desktop {
    display: flex;
    flex-direction: row;
    align-items: center;
}

img.relative {
    position: relative;
    left: -180px;
    width: 50%;
    z-index: -1;
    max-height: 100%;
}

div.textblock {
    display: flex;
    flex-direction: column;
}

img.icon {
    width: 20%;
}

div.preparation {
    display: flex;
    flex-direction: row;
    gap: 70px;
    margin-top: 10px;
}

div.equipment,
div.coffeebean {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    width: 50%;
}

div.textgrp {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

div.intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/**Section 2*/
/*banner*/
div.banner-img-container {
    background-image: url(../images/coffeebeans-bct.jpg);
}

/*Title*/
div.titleblock h3 {
    margin-bottom: 60px;
}

/*brewing */
div.brewing-instructions {
    display: flex;
    flex-direction: row;
    gap: 70px;
}

/*Tutorial Steps*/
.step-set.hidden {
    display: none;
}

/* Showing the active step set */
.step-set.active {
    display: grid;
}

.step-set {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-column-gap: 50px;
    gap: 30px;
}

.step-by-step {
    display: flex;
    align-items: flex-start;
    /* Aligns number-step and paragraph to the top */
    gap: 20px;
    /* Add some space between the number and the text */
}

.step-by-step p {
    /* To help long text flow properly */
    flex-grow: 1;
}

div.number-step {
    /* Prevent the circle from shrinking */
    flex-shrink: 0;
}

div.titleblock {
    width: 60%;
}

div.number-step {
    display: flex;
    justify-content: center;
    align-items: center;
}

div.number-base {
    background-color: var(--tertiary);
    width: 50px;
    height: 50px;
    border-radius: 100px;
    display: flex;
    /* Set the container as a flex container */
    justify-content: center;
    /* Center the item horizontally (on the main axis) */
    align-items: center;
}

div.number-base h5 {
    color: var(--light);
    margin: 0;
    /* Important: Remove default h5 margins */
    line-height: 1;
}

/*Section 3*/
div.you-did-it {
    text-align: center;
}

div.you-did-it h3 {
    margin-bottom: 32px;
}

div.testimonial {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-brown);
    border-radius: 30px;
    padding: 70px;
    gap: 5%;
}

div.t-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55%;
    gap: 50px;
}

img.deco {
    position: relative;
    width: 100px;
    height: 5px;
}

img.quotation {
    width: 10%;
}

div.person {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/**Media Query*/
/*desktop smaller screen and tablet landscape size*/
@media (max-width: 1025px) {
    .wrapper {
        padding: clamp(30px, 8vw, 80px) clamp(15px, 6vw, 60px) !important;
    }


    /**section 1*/

    div.our-signature-coffee--section-desktop {
        display: none;
    }

    div.textblock {
        width: 100%;
    }

    div.picntext img {
        position: static;
        width: 50%;
    }

    div.picntext {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    /*section 2*/
    /*banner*/
    div.banner {
        margin-bottom: 50px;
    }

    /*method*/
    div.brewing-instructions {
        display: flex;
        flex-direction: column;
        gap: 70px;
    }

    div.titleblock h3 {
        margin-bottom: 30px;
    }


    /*section 3*/
    img.deco {
        display: none;
    }

    div.t-content {
        width: 100%;
    }

}

/*768px (tablet portrait size and mobile landscape size)*/
@media(max-width:768px) {
    .wrapper {
        padding: 100px 70px;
    }


    /**first section*/
    div.preparation {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    div.equipment,
    div.coffeebean {
        width: 100%;
    }

    div.picntext {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    div.picntext img {
        width: 75%;
        margin: auto;
    }

    /**second section*/
    div.methodstep>div#pour-over-steps.step-set.active {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .step-set.active {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
        grid-column-gap: 0;
        gap: 20px;
    }

}

@media(min-width:1025px) {
    div.our-signature-coffee--section-mobile {
        display: none;
    }

    img.relative-reponsive-mobile {
        display: none;
    }

    div.method,
    div.methodstep {
        display: flex;
        flex-direction: row;
    }
}