@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* hero-section */

.blog-hero {
    /* border: 2px solid red; */
    height: 100vh;
    width: 100%;
    /*background-image: url("/wp-content/themes/houzez-child/blocks/assets/Blog\ \ 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;
}

#header-hz-elementor {
    z-index: 5;
    position: relative;
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
}

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

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

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

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

.blog-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);
}

.blog-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);
}

.blog-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) */
.blog-hero-header>div:nth-child(2) {
    width: auto;
    height: 100%;
    line-height: 10px;
    margin-top: 20px;
    margin-left: 20px;
}

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

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

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


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

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

.blog-hero-para .blog-hero-read-toggle {
    display: block;
    margin-left: 4px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

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

.blog-hero-para.expanded .blog-hero-more-text {
    max-height: 300px;
    opacity: 1;
    display: block;
}

.blog-hero-read-toggle {
    font-weight: 300 !important;
}

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

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

.blog-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;
}

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

/* Section 2*/
.blog-news-section {
    width: 100%;
    margin-top: 50px;
}

.blog-news-container {
    width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.blog-news-title {
    font-size: 30px;
    font-weight: 600;
    color: #46AD67;
    margin-bottom: 10px;
    text-align: center !important;
}

.blog-news-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: black;
    margin-bottom: 20px;
    text-align: center !important;
}

/* Tabs */
.blog-news-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.blog-news-tab {
    padding: 10px 20px;
    /*width: 195.83px;*/
    height: 38px;
    font-size: 20px;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    position: relative;
    transition: color 0.3s, font-weight 0.3s;
}

.blog-news-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: black;
}

/* Active Tab */
.blog-news-tab.blog-news-tab-active {
    color: #4caf50;
    font-weight: 500;
}

.blog-news-tab.blog-news-tab-active::after {
    background-color: #4caf50;
    height: 1px;
}

/* Grid */
.blog-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.blog-news-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 354px;
    height: 345px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-news-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    border-radius: 10px;
    pointer-events: none;
    background: linear-gradient(to bottom, #D9D9D900 0%, #0000009f 50%);

}

.blog-news-card img {
    width: 100%;
    height: 100%;
    display: block;
}
.blog-news-card:hover{
    color: #28a745;
}
.blog-news-overlay {
    position: absolute;
    width: 300px;
    height: 56px;
    bottom: 12px;
    left: 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 400;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: start;
    z-index: 2;
}

/* Button */
.blog-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    gap: 10px;
    margin: 30px auto 0 auto;
}


.blog-news-btn:hover {
    background-color: #45a049;
}

/* Pagination */
.blog-news-pagination-main {
    width: 100%;
}

.blog-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    /*width: 415px;*/
}

.blog-news-pagination .blog-news-page-btn,
.blog-news-pagination .blog-news-page-number {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    margin: 0 3px;

}

.blog-news-pagination .blog-news-page-number.active {
    background: #4caf50;
    color: #fff;
    font-weight: bold;
    border-color: #4caf50;
}

.blog-news-pagination .blog-news-page-btn:hover,
.blog-news-pagination .blog-news-page-number:hover {
    background: #f2f2f2;
}

.blog-news-page-arrow {
    color: #626262;
}

/* ----section-3------- */

.blog-faq-section {
    width: 100%;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    margin-top: 50px;
}

.blog-faq-container {
    width: 1200px;
    margin: 0 auto;
}

.blog-faq-title {
    color: #181A20;
    font-size: 30px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.blog-faq-subtitle {
    color: #181A20;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    margin-bottom: 20px;
    text-align: center;
}

/* Tabs */
.blog-faq-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 25px;
    gap: 10px;
}

.blog-faq-tab {
    width: 100%;
    height: 38px;
    padding: 10px 20px;
    color: #000;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
    background: none;
    border: none;
    border-bottom: 1px solid #333333;
    transition: color 0.3s;
}

.blog-faq-tab.active {
    color: #4caf50;
    border-bottom: 1px solid #46AD67;
    font-weight: 500;
}

/* FAQ Items */
.blog-faq-list {
    list-style: none;
    padding: 0;
}

.blog-faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    display: none;
}

.blog-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.blog-faq-question:hover {
    color: #4caf50;
}

.blog-faq-answer {
    display: none;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    padding-left: 20px;
}

.blog-faq-expand {
    font-size: 17px;
    width: 16px;
    color: #000;
}

.blog-faq-item.active .blog-faq-question {
    color: #4caf50;
}

.blog-faq-item.active .blog-faq-answer {
    display: block;
}


/*section-4 blog-contact-section */

.blog-contact-section {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 50px;
}

.blog-contact-section .blog-contact-container {
    width: 85%;
    height: 309px;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.581) 40%,
            rgba(0, 0, 0, 0) 100%),
        url(/wp-content/themes/houzez-child/blocks/assets/Contact-banner.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.blog-contact-container div:first-child {
    width: 556px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: start;
}

.blog-contact-container div:first-child h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.blog-contact-container div:first-child p {
    color: white;
    font-size: 20px;
    font-weight: normal;
    line-height: 22px;
    margin-top: 10px;
}

.blog-contact-container div:first-child form {
    width: 100%;
    height: 49px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 25px;
}

.blog-contact-container div:first-child form input {
    width: 82%;
    height: 100%;
    border: none;
    padding-left: 10px;
}

.blog-contact-container div:first-child form input::placeholder {
    font-weight: 400;
    font-size: 14px;
}

.blog-contact-container div:first-child form input:focus {
    border: none;
    outline: none;
}

.blog-contact-container div:first-child form .blog-contact-submit {
    width: 66px;
    height: 33px;
    border-radius: 4px;
    border: none;
    background-color: #46ad67;
    color: white;
    font-weight: 600;
}

.blog-contact-container div:first-child form .blog-contact-submit:hover {
    background-color: #3a995c;
    cursor: pointer;
}

.blog-contact-container div:nth-child(2),
.blog-contact-container .blog-contact-image {
    /* Added .blog-contact-image selector */
    width: 231px;
    height: 100%;
    background-image: url(/wp-content/themes/houzez-child/blocks/assets/Contact-image.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/* =================================== */
/* Media Queries              */
/* =================================== */

@media (max-width: 480px) {

    /* hero-section */
    .blog-hero {
        background-image: url("/wp-content/themes/houzez-child/blocks/assets/Blog\ \ 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;
    }

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

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

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

    .blog-hero-header .ri-user-line:first-child,
    .blog-hero-header .ri-user-line:nth-child(2),
    .blog-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);
    }

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

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

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

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

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

    .blog-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 */
    }

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

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

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

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

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

    .blog-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;
        margin: 0 auto;
    }

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

    /* section-2 */
    .blog-news-container {
        width: 100%;
        padding: 20px;
        /* Add padding for spacing */
    }

    .blog-news-title {
        font-size: 22px;
        text-align: start !important;
    }

    .blog-news-subtitle {
        font-size: 13px;
        text-align: start !important;
    }

    /* Tabs */
    .blog-news-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 25px;
        width: 100%;
        /* Ensure full width */
    }

    .blog-news-tab {
        width: auto;
        /* Let grid handle width */
        font-size: 14px;
        padding: 8px 12px;
        height: auto;
        /* Reset height */
    }

    /* Grid */
    .blog-news-grid {
        grid-template-columns: 1fr;
        /* single column */
        gap: 15px;
    }

    .blog-news-card {
        width: 100%;
        /* Full width */
        height: 250px;
    }

    .blog-news-overlay {
        width: calc(100% - 40px);
        font-size: 16px;
        left: 20px;
    }

    /* Pagination */
    .blog-news-pagination {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .blog-news-pagination .blog-news-page-btn,
    .blog-news-pagination .blog-news-page-number {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* --- FAQ Section --- */
    .blog-faq-section {
        margin-top: 50px;
    }

    .blog-faq-container {
        width: 100%;
        padding: 0 15px;
    }

    .blog-faq-title {
        font-size: 22px;
        text-align: start;
    }

    .blog-faq-subtitle {
        font-size: 13px;
        text-align: start;
    }

    /* Tabs */
    .blog-faq-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 25px;
    }

    .blog-faq-tab {
        width: 100%;
        font-size: 16px;
        height: auto;
        padding: 8px 12px;
    }

    .blog-faq-tab:last-child {
        grid-column: 1 / -1;
        width: 100%;
    }

    /* FAQ Question/Answer */
    .blog-faq-question {
        font-size: 14px;
    }

    .blog-faq-answer {
        font-size: 13px;
        padding-left: 10px;
    }

    /* .section-4 */
    .blog-contact-section {
        margin-top: 50px;
        width: 100%;
        padding: 0 15px;
        /* Add padding */
    }

    .blog-contact-section .blog-contact-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .blog-contact-container div:nth-child(2),
    .blog-contact-container .blog-contact-image {
        /* Added .blog-contact-image selector */
        order: 1;
        width: 100%;
        height: 300px !important;
        margin-bottom: 15px;
        border-radius: 8px;
        background-size: cover;
        background-position: center;
    }

    .blog-contact-container div:first-child {
        order: 2;
        width: 100%;
        align-items: flex-start;
    }

    .blog-contact-container div:first-child h1 {
        font-size: 20px;
    }

    .blog-contact-container div:first-child p {
        font-size: 16px;
        line-height: 20px;
    }

    .blog-contact-container div:first-child form {
        flex-direction: row;
        height: 45px;
    }

    .blog-contact-container div:first-child form input {
        width: 56%;
    }

    .blog-contact-container div:first-child form .blog-contact-submit {
        width: auto;
        padding: 6px 14px;
        font-size: 14px;
    }
}