/*--------- category  ---------------*/

.category-container {
    display: flex;
    justify-content: start;
    align-items: start;
    width: 100%;
    gap: 5px; /* Space between categories */
}

.category {
    position: relative;
    flex: 1;
    height: 65vh; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: flex-grow 0.4s ease; /* Smooth transition for flex-grow */
}

/* Background images for each category */
.curtain { background-image: url('../images/category/category-curtain.webp'); }
.blinds { background-image: url('../images/category/category-blinds.webp'); }
.wallpapers { background-image: url('../images/category/category-wallpaper.webp'); }
.carpet { background-image: url('../images/category/category-carpet.webp'); }
.cleaning { background-image: url('../images/category/category-cleaning.webp'); }


.category::before {
    content: ""; /* Required for pseudo-elements */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% opacity */
    z-index: 1; /* Ensures overlay is above background but below content */
}

.category:hover::before {
    background: rgba(0, 0, 0, 0.2); 
 }

/* Overlay styling */
/*.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    transition: opacity 0.4s ease; 
}*/



.category:hover {
    flex-grow: 1.4; /* Expand width by 20% on hover */
}

.category:hover a {
    position: relative;
    background-color: var(--color-dark);
    z-index: 2; 
}

.category a {
    position: relative;
    color: var(--color-white);
    background-color: var(--color-brand);
    padding: 5px 15px 5px 15px;
    z-index: 2; 
    font-size: 0.7em;
    letter-spacing: 2px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 5px 5px;
}
/*--------- end category  ---------------*/

/*--------- about us  ---------------*/
.about-us-block {
    background-color: var(--color-brand);
    z-index: 2;
    position: relative; /* Ensure z-index works */
    border-radius: 8px 8px;
}

.about-us-block1 {
    min-height: 280px;
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 2em;
    z-index: 3;
    position: relative; 
   
} 

.about-us-block2 {
    margin-top: 30px;
    margin-left: -80px;
    width: 80%;
    position: relative; /* Ensure layering */
    z-index: 1;
    border: solid 5px #ffffff;
    border-radius: 0px 15px 15px 0px;
}

.about-us-block3 {
    width: 80%;
    position: relative; 
    z-index: 2;
    border-radius: 0px 0px 5px 5px;
}

.about-us-block4 {
    margin-top: -280px;
    margin-left: -60px;
    width: 110%;
    position: relative; 
    z-index: 0; 
    border-radius: 5px 5px;
}


/*--------- Step background  ---------------*/
.background-step p{
    color:var(--color-white);
}

.background-step{
position: relative;
background-image: url('../images/step/background-home-step.webp');
background-size: cover;
background-position: center;
min-height: 60vh;
}

.background-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.background-step > * {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
}