﻿/* ====== index ===== */


h1.conservation {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    color: #000;
    font-size: clamp(32px, 4.5vw, 64px) !important;
    text-align: center;
    margin-bottom: clamp(10px, 2vw, 15px);
    line-height: 1.2;
    word-break: break-word; /* prevents overflow */
}

h2.conservation {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #000;
    font-size: clamp(26px, 2.8vw, 40px) !important;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 30px !important;
    line-height: 1.25;
    text-decoration: underline;
}

h3.conservation {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #000;
    font-size: clamp(20px, 2vw, 28px) !important;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

div.first-element-below-carousel {
    margin-top: clamp(20px, 5vw, 70px) !important;
}

div.separation-bar {
    background-color: #002D72;
    height: 5px;
    margin-top: 40px;
    margin-bottom: 25px;
}

.section-block {
    margin-top: clamp(25px, 5vw, 50px);
}

.section-block:first-of-type {
    margin-top: 0;
}
/* ==== buttons ====*/

/* === images === */
/* Section images carry width and height attributes so their space is kept while they load; this lets them scale. */
.rebate-image {
    height: auto;
}

@media (max-width: 767px) {
    .rebate-image {
        display: block;
        margin: 0 auto 40px auto;
        max-width: 80%;
    }
    .section-block:first-of-type {
        margin-top: clamp(25px, 5vw, 50px);
    }
    h1.conservation {
        padding-left: 10px;
        padding-right: 10px;
    }
    h2.conservation,
    h3.conservation {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
    .paddingLeftRightZero, .row {
        padding-left: 5px; /* or 0 if you want edge-to-edge */
        padding-right: 5px; /* usually leave a tiny padding for readability */
    }

    div.first-element-below-carousel {
        margin-top: 25px !important;
    }

    p {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ==== carousel ==== */
#recommended-item-carousel .carousel-indicators {
    display: none;
}

#recommended-item-carousel {
    margin-bottom: 0;
}

#recommended-item-carousel {
    position: relative;
}

    #recommended-item-carousel .carousel-inner {
        position: relative;
        z-index: 1;
    }

    #recommended-item-carousel .carousel-inner img {
        width: 100%;
        height: auto;
        max-height: 500px; /* prevents it from getting huge on desktop */
        object-fit: cover;
    }

    #recommended-item-carousel .recommended-item-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #recommended-item-carousel .recommended-item-control img {
        width: 30px;
        height: auto;
    }

    /* Left Arrow */
    #recommended-item-carousel .left.recommended-item-control {
        left: 10px;
    }
    /* Right Arrow */
    #recommended-item-carousel .right.recommended-item-control {
        right: 10px;
    }

    #recommended-item-carousel .carousel-indicators {
        position: absolute;
        bottom: 10px; /* space from bottom of carousel */
        left: 50%;
        transform: translateX(-50%);
        z-index: 20; /* above slides */
        display: flex !important;
        justify-content: center;
        margin: 0;
        padding-left: 0;
        list-style: none;
    }

    #recommended-item-carousel .carousel-indicators li {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.7);
        margin: 0 6px;
        cursor: pointer;
    }

        #recommended-item-carousel .carousel-indicators li.active {
            background-color: #ffffff;
        }

/* === rebate details ===
   Native details elements, which replaced DevExpress accordions on the rebates page so it needs no DevExpress scripts. */
.rebate-details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.rebate-details > summary {
    position: relative;
    padding: 10px 40px 10px 15px;
    background-color: #f5f5f5;
    color: #1857A5;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.rebate-details > summary::-webkit-details-marker {
    display: none;
}

.rebate-details > summary::after {
    content: "\f107";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-family: FontAwesome;
    font-size: 18px;
}

.rebate-details[open] > summary::after {
    content: "\f106";
}

.rebate-details[open] > summary {
    border-bottom: 1px solid #ddd;
}
