/* FAQ Page Styles */
.faq-page ul.accordion {
    list-style-type: none !important;
    padding-left: 0;
}
.faq-page ul.accordion > li {
    margin: 0 !important;
}
.faq-page ul.accordion > li .title {
    font-weight: bold;
    color: #e95c24;
    background: url(../images/sidebar-arrow-right.svg) no-repeat right top;
    padding: 0 30px 15px 20px; /* added 30px right padding so text doesn't overlap icon */
    border-bottom: 1px solid #0a78be;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 22px; /* Add some size matching the live site approx */
}
.faq-page ul.accordion > li .accordion-content {
    display: none;
    padding-left: 20px;
    margin-bottom: 70px;
}
.faq-page ul.accordion > li.open .title {
    background-image: url(../images/sidebar-arrow-down.svg);
}

/* Reduce massive white space above the footer */
.faq-page .lp-frequently-asked-questions {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.faq-page .lp-frequently-asked-questions article.node {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.faq-page article.node .node__content,
.faq-page article.node .section1,
.faq-page article.node section.default,
.faq-page article.node section.default .section-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}
.faq-page ul.accordion {
    margin-bottom: 0 !important;
    padding-bottom: 40px !important; /* Just leave a small 40px gap before the footer */
}
.faq-page .section-content.columns-0 {
    display: none !important; /* Hide empty columns-0 div */
}

/* --- Hero Section --- */
.faq-page .section-first {
    min-height: 335px;
    height: auto;
    padding-top: 0px;
}
.faq-page .section-first h1, .faq-page .section-first p {
    color: #323232;
}
.faq-page .section-first .section-header {
    margin-top: clamp(30px, 3vw + 15px, 60px) !important; /* Fluid top margin */
    padding-top: 0px !important;
    text-align: left;
}
.faq-page .section-first .section-header h1 {
    position: relative;
    z-index: 10;
    font-size: clamp(22px, 3vw + 10px, 43px) !important; /* Fluid heading font-size */
    line-height: 1.2 !important;
}
.faq-page .section-content .background-image {
    background-repeat: no-repeat;
    background-position: 0 -140px;
    background-size: 100%;
}
.faq-page .section-content .bg-image {
    position: relative; /* RESTORED TO NORMAL FLOW! This stops it from covering the header */
    width: 100%;
    height: 550px !important; /* Huge height guarantees it extends far behind the white section below */
    overflow: hidden;
    z-index: 0;
}

/* Add full-coverage semi-transparent white overlay to the image container */
.faq-page .section-content .bg-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1; /* Above image, below text */
}

.faq-page .section-content .bg-image img {
    width: 100%;
    height: 100% !important; /* Force image to stretch into the 550px container */
    margin-top: -10%; /* Revert mountain shift so peaks are back where they were */
    object-fit: cover;
}

/* Remove the broken white overlay completely (replaced by ::after above) */
.faq-page .section-first .section-fade {
    display: none !important;
}

/* Make sure the text article is layered properly above the image */
.faq-page article.node {
    position: relative;
    z-index: 10;
    margin-top: -40px !important; /* Give more breathing room below the text by lowering the white section */
    border-radius: 0 !important; /* Clear old radius */
    border-top-left-radius: 60% 180px !important; /* Gentle, sweeping elliptical curve that easily covers the edge */
}
.faq-page .bg-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Make sure the text article is layered above the absolute image */
.faq-page article.node {
    position: relative;
    z-index: 10;
}

/* Force pull footer up by collapsing the main block wrapper */
.faq-page #block-heatreduction-mainpagecontent {
    margin-bottom: -50px !important;
}

/* Remove bottom margin from the last accordion item */
.faq-page ul.accordion > li:last-child .accordion-content {
    margin-bottom: 0 !important;
}

/* Remove the extra padding I added to the accordion earlier */
.faq-page ul.accordion {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; 
}

/* Make sure the title has space since the image is now overlapping */
.faq-page .section-first {
    margin-top: -550px; /* Physically pull the text container UP so it perfectly overlaps the normal-flow background image! */
    position: relative;
    z-index: 10;
}
.faq-page .section-first section {
    padding-top: clamp(30px, 5vw + 10px, 100px) !important; /* Fluid top padding scales down on smaller viewports */
    padding-bottom: 0 !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
}

/* Force global wrappers to collapse their min-heights on this specific page */
body.page-template-page-frequently-asked-questions .page-wrapper,
body.page-template-page-frequently-asked-questions .content-main,
body.page-template-page-frequently-asked-questions #block-heatreduction-mainpagecontent {
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

@media only screen and (max-width: 885px) {
    .faq-page .section-first {
        height: auto !important;
        min-height: 260px;
    }
}


