
.header-bg {
    position: relative;
    /* Ensure ::before is positioned correctly */
    background: url('../images/bg5.jpg') no-repeat center center;
    background-size: cover;
    background-position: center 51%;
    color: #fff;
    text-align: center;
    font-family: "Libertinus Serif", serif;
    font-size: 18px !important;
    padding: 25px 32px 188px;
    z-index: 1;
    overflow: hidden;
    /* Prevent clipping issues on Safari */
}
.header-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 533px;
    z-index: -1;

    /* Gradient fix for Safari */
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6),
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.18));

    /* Force GPU rendering for smoother performance on Safari */
    transform: translateZ(0);
    will-change: opacity;
}
.header-text-box{
        padding-top: 102px;
}
h1{
    font-family: "Libertinus Serif", serif;
    font-size: 56px;
    font-weight: 300;
    color: #fff;
        text-transform: uppercase;
}
h3{
    font-family: "Libertinus Serif", serif;
    font-size: 28px;
    font-weight: 300;
    color: #fff;
}
.subheading{
    padding: 12px;
        width: 32%;
        background: linear-gradient(to right, #f09d6d, #cd7c52, #97542a);
}
.header-italic-text{
    font-size: 25px;
    font-family: "Libertinus Serif", serif;
    font-style: italic;

}
.footer-first-heading{
    color: #12121278;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    font-family: "Libertinus Serif", serif;
}
.footer-li{
    color: #121212cc;
        font-size: 17px;
        font-weight: 400;
        font-family: "Libertinus Serif", serif;
}
.footer-li:hover {
    color: #884720;
        text-decoration: none;
}
::marker{
    display: none;
}
li{
    list-style-type: none;
}
ul{
    padding-inline-start: 0px;
}
.footer-ul{
        padding-top: 12px;
}
.footer-bottom-text{
    color: #12121278;
        font-size: 17px;
        font-weight: 400;
        float: left;
        font-family: "Libertinus Serif", serif;
}
.footer-bottom-text2 {
    color: #12121278;
    font-size: 17px;
    font-weight: 400;
    float: right;
    font-family: "Libertinus Serif", serif;
}

.footer{
    padding: 32px 0px;
}
.li-gap{
        margin: 6px 0px;
}
@media only screen and (max-width: 767px) {
    .header-bg::before {
        height: 675px !important;
    }
        .footer-bottom-text2 {
            float: none!important;
        }
    h1{
        font-size: 40px !important;
    }
        .subheading {
            width: 100% !important;
        }
}

@media screen and (max-width: 820px) and (orientation: portrait) {
    .header-bg {
        padding: 20px 16px 150px;
        background-position: center center;
        text-align: center;
    }

    .masthead-brand img {
        width: 100px;
        height: auto;
    }

    .header-text-box h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .header-italic-text {
        font-size: 16px;
        display: block;
        margin: 0 auto;
        max-width: 90%;
        font-style: italic;
    }

    .header-bg::before {
        height: 500px;
    }
}
@media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
        .header-bg {
            padding-bottom: 160px;
        }

        .header-bg::before {
            height: 490px;
        }

        .header-text-box h1 {
            font-size: 22px;
            margin-bottom: 8px;
        }

        .header-italic-text {
            font-size: 15px;
        }
    }
}