/* hero-section */

.new-hero {
    /* border: 2px solid red; */
    height: 100vh;
    width: 100%;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.686);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.new-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.new-hero::before {
    content: '';
    /* Obligatorio para pseudo-elementos */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Color negro con 50% de opacidad */
    z-index: 2;
    /* Para que el overlay esté entre la imagen y el texto */
}

.new-hero-content {
    width: 819px;
    height: 478px;
    /* border: 1px solid red; */
    margin-left: 7.5%;
    position: absolute;
    z-index: 3;
}

.new-hero-content .new-hero-header {
    width: auto;
    height: 45.5px;
    display: flex;
    justify-content: start;
    align-items: center;
}

/* First child (icons container) */
.new-hero-header>div:first-child {
    width: 10%;
    height: 100%;
    margin-top: 20px;
}

.new-hero-header .ri-user-line:first-child {
    padding: 10px;
    border-radius: 50px;
    background-color: #F1F3F7;
    color: #6D758F;
    z-index: 1;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.25);
}

.new-hero-header .ri-user-line:nth-child(2) {
    padding: 10px;
    border-radius: 50px;
    background-color: #F1F3F7;
    color: #6D758F;
    margin-left: -20px !important;
    z-index: 1;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
}

.new-hero-header .ri-user-line:nth-child(3) {
    padding: 10px;
    border-radius: 50px;
    background-color: #F1F3F7;
    color: #6D758F;
    margin-left: -20px !important;
    z-index: 50;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
}

/* Second child (text content) */
.new-hero-header>div:nth-child(2) {
    width: auto;
    height: 100%;
    line-height: 10px;
    margin-top: 20px;
    margin-left: 20px;
}

.new-hero-header .new-hero-review {
    color: white;
    font-size: 16px;
}

.ri-star-fill {
    color: #F0AD4E;
}

.new-hero-content .new-hero-header .new-hero-google {
    font-size: 14px;
    color: white;
    margin-top: 10px;
}


.new-hero-content h1,
.new-hero-content h2 {
    font-size: 64px;
    color: white;
    font-weight: 500;
    line-height: 65px;
    margin-top: 20px;
}

.new-hero-para {
    font-size: 24px;
    color: white;
    font-weight: 300;
    line-height: 31px;
    padding-inline-end: 20%;
    margin-top: 15px;
    position: relative;
}

.new-hero-para {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-hero-para.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.new-hero-read-toggle {
    display: block;
    margin-top: 8px;
    color: white;
    font-weight: 300;
    cursor: pointer;
    text-decoration: underline;
}

.new-hero-read-toggle i {
    transition: transform 0.3s ease;
}

.new-hero-button {
    color: #fff;
    border: 1px solid #28a745;
    /* padding: 12px 30px; */
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 500;
    /* margin-left: 15px; */
    width: 240px;
    height: 48px;
    padding: 10px 5px 5px 5px;
    display: block;
    text-align: center;
}

.new-hero-button:hover {
    background-color: #3a995c;
    color: #fff;
    cursor: pointer;
}


/* =================================== */
/* Media Queries (Hero Only)           */
/* =================================== */

@media (max-width: 480px) {

    /* hero-section */
    .new-hero {
        background-image: url("/wp-content/themes/houzez-child/blocks/assets/new\ \ hero\ Sectrion.png");
        background-blend-mode: overlay;
        background-color: rgba(0, 0, 0, 0.686);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .new-hero-content {
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        /* Reset margin */
    }

    .new-hero-content .new-hero-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        gap: 10px;
    }

    /* First child (icons container) */
    .new-hero-header>div:first-child {
        width: auto;
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }

    .new-hero-header .ri-user-line:first-child,
    .new-hero-header .ri-user-line:nth-child(2),
    .new-hero-header .ri-user-line:nth-child(3) {
        padding: 10px;
        border-radius: 50px;
        background-color: #f1f3f7;
        color: #6d758f;
        box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
    }

    .new-hero-header .ri-user-line:nth-child(2),
    .new-hero-header .ri-user-line:nth-child(3) {
        margin-left: -22px !important;
        /* Keep important if needed */
    }

    .new-hero-header>div:nth-child(2) {
        margin-top: 0;
        line-height: normal;
        text-align: center;
        margin-left: 0;
        /* Reset margin */
    }

    .new-hero-header .new-hero-review {
        font-size: 14px;
        color: white;
    }

    .new-hero-content .new-hero-header .new-hero-google {
        font-size: 12px;
        margin-top: 2px;
        color: white;
    }

    .new-hero-content h1 {
        font-size: 28px;
        color: white;
        font-weight: 500;
        line-height: 1.3;
        margin-top: 20px;
        text-align: center;
    }

    .new-hero-para {
        font-size: 15px;
        color: white;
        font-weight: 300;
        line-height: 24px;
        margin-top: 15px;
        text-align: center;
        position: relative;
        padding-inline: 0;
        /* Reset padding */
        padding-inline-end: 0;
        /* Explicitly reset */
    }

    .new-hero-para .new-hero-read-toggle {
        display: block;
        margin-top: 8px;
        color: white;
        font-weight: 500;
        cursor: pointer;
        text-decoration: underline;
        margin-left: 0;
        /* Reset margin */
    }

    .new-hero-more-text {
        display: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .new-hero-para.expanded .new-hero-more-text {
        max-height: 300px;
        opacity: 1;
        display: block;
        margin-top: 6px;
    }

    .new-hero-read-toggle i {
        transition: transform 0.3s ease;
    }

    .new-hero-para.expanded .new-hero-read-toggle i {
        transform: rotate(180deg);
    }

    .new-hero-button {
        width: 200px;
        height: 50px;
        border-radius: 5px;
        background-color: #46ad67;
        color: white;
        border: none;
        font-size: 16px;
        font-weight: 500;
        margin-top: 20px;
        text-align: center;
    }

    .new-hero-button:hover {
        background-color: #3a995c;
        cursor: pointer;
    }
}