﻿.blog-hero-header {
    min-height: 60vh;
    background-image: url('/Resources/Images/Blog/1281770693.jpg');
    background-size: cover;
    background-position: 15% 25%;
}

.blog-hero-header-h1-container {
    left: 15%;
    bottom: 10%;
}

    @media (max-width: 768px) {
        .blog-hero-header {
            min-height: 40vh;
            background-image: url('/Resources/Images/Blog/1281770693.jpg');
        }

        .blog-hero-header-h1-container {
            left: 7%;
            bottom: 7%;
        }

            .blog-hero-header-h1-container h1 {
                font-size: 2.5rem;
            }
    }

    @media (max-width: 576px) {
        .blog-hero-header {
            min-height: 30vh;
            background-image: url('/Resources/Images/Blog/1281770693.jpg');
        }

        .blog-hero-header-h1-container {
            left: 2%;
            bottom: 4%;
        }

            .blog-hero-header-h1-container h1 {
                font-size: 2rem;
            }
    }

.bg-custom {
    background-color: #DFD5C8 !important;
    width: 100%; /* Ensures full width */
    min-height: 100px; /* Adjust height as needed */
    padding: 35px 0; /* Adds vertical space */
}



/* =================================== */
/* CALENDLY / CLOUDFLARE WIDGET STYLES */
/* =================================== */
.gated-widget {
    position: relative;
}

    /* Desaturate and lower opacity behind the shield */
    .gated-widget .calendly-inline-widget {
        filter: grayscale(0.2);
        opacity: 0.7;
    }

/* Overlay fills the widget area and blocks interaction */
.gated-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 246, 0.86); /* warm, on-brand veil */
    backdrop-filter: blur(2px);
    z-index: 3;
    pointer-events: auto;
}

    /* Neat little card in the center */
    .gated-overlay .overlay-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(0,0,0,.15);
        padding: 18px 20px;
        max-width: 420px;
        width: calc(100% - 32px);
    }

/* When unlocked, remove the shield and visual “disabled” treatment */
.gated-widget.unlocked .calendly-inline-widget {
    filter: none;
    opacity: 1;
}

.gated-widget.unlocked .gated-overlay {
    display: none;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Ensure the wrapper spans the full column width */
.gated-widget {
    display: block;
    width: 100%;
}

    /* Calendly’s inline container should always stretch */
    .gated-widget .calendly-inline-widget {
        width: 100% !important;
    }

/* Desktop: give it a bit more height since it’s wider */
@media (min-width: 992px) {
    #calendly-inline {
        height: 900px; /* adjust to taste */
    }
}

/* Overlay fills the Calendly area */
.gated-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 248, 246, 0.86);
    backdrop-filter: blur(2px);
    z-index: 3;
    pointer-events: auto;
    /* TOP + CENTER */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* top */
    align-items: center; /* center horizontally */
    padding-top: 16px; /* space from top edge */
    padding-left: 16px;
    padding-right: 16px;
}

    /* Center the card; keep a sensible max width */
    .gated-overlay .overlay-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(0,0,0,.15);
        padding: 18px 20px;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

/* Optional: keep it visible as the user scrolls a tall Calendly */
@media (min-width: 768px) {
    .gated-overlay .overlay-card {
        position: sticky;
        top: 8px; /* sticks near the top */
    }
}

/* While locked, don't allow clicks into Calendly */
.gated-widget:not(.unlocked) .calendly-inline-widget {
    pointer-events: none;
}

/* When unlocked, enable interaction */
.gated-widget.unlocked .calendly-inline-widget {
    pointer-events: auto;
    filter: none;
    opacity: 1;
}

.gated-widget.unlocked .gated-overlay {
    display: none !important; /* beat Bootstrap's .d-flex !important */
}
/* =================================== */

