/* Sticky Callout Wrapper */
.sticky-callout-wrapper {
    position: relative;
    width: 100%;
    z-index: 10; /* Lower than header but higher than most content */
    height: 0; /* Don't take up space in the document flow */
    overflow: visible; /* Allow container to be visible outside */
}

/* Sticky Callout Container */
.sticky-callout-container {
    position: absolute;
    top: -85px; /* Initial position for absolute state */
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    z-index: 10;
    transition: top 0.3s ease-in-out;
}
.sticky-callout-container.secondary {
    top: 170px;
}

/* Fixed state */
@media screen and (min-width: 769px) {
    .sticky-callout-container.is-fixed {
        position: fixed;
        /* top will be set by JavaScript based on header visibility */
        /* We're removing transform-based positioning in favor of direct top values */
    }

    /* Placeholder to prevent content jump */
    .sticky-callout-container.is-fixed ~ .sticky-callout-placeholder {
        display: block; /* Only show when container is fixed */
    }
}

/* Placeholder to prevent content jump */
.sticky-callout-placeholder {
    display: none; /* Hide by default */
    width: 100%;
}

/* Sticky Callout Content */
.sticky-callout-content {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

/* Image Title Container */
.sticky-callout-content .image-title-container {
    position: relative;
    margin-bottom: 0;
}

.sticky-callout-content .title-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 760px; /* Match the SVG width */
    gap: 30px;
}

.sticky-callout-content .title-text {
    color: var(--color-white);
    font-size: var(--font-size-floating-bow-text);
    line-height: var(--font-lh-floating-bow-text);
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: right;
}

.sticky-callout-content .title-button {
    margin: 0;
    flex: 1;
}

.sticky-callout-content .title-button .wp-block-button__link {
    background-color: var(--color-yellow);
    color: var(--color-red);
    border: 2px solid var(--color-white);
    border-radius: 20px;
    font-weight: 600;
    padding: 7px 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-callout-content .title-button .wp-block-button__link:hover {
    background-color: var(--color-red);
    color: var(--color-yellow);
}

.sticky-callout-content .background-image-svg {
    width: 100%;
    max-width: 770px;
    height: 115px;
    margin: 30px auto 0;
    background-image: url('/wp-content/uploads/static/red-bow-medium.png');
    background-size: 100% 115px;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.sticky-callout-content .background-image-svg svg {
    width: 805.294px;
    height: 150.523px;
    display: block;
    shape-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    filter: none;
    max-width: 100%;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .sticky-callout-container.secondary {
        top: -10px;
    }

    .hero-section-wrapper.secondary.blue + .sticky-callout-wrapper .sticky-callout-container.secondary {
        top: 170px;
    }
    
    .sticky-callout-content .title-content {
        max-width: 600px;
        gap: 20px;
    }
    
    .sticky-callout-content .title-text {
        text-align: center;
    }
    
    .sticky-callout-content .title-button {
        margin: 0;
    }
    
    .sticky-callout-content .background-image-svg {
        height: 95px;
        max-width: 650px;
        background-size: 100% 95px;
    }
}

@media screen and (max-width: 767px) {
    .sticky-callout-container.secondary {
        top: -20px;
    }
    
    .sticky-callout-content {
        padding: 5px 35px 0;
    }
    
    .sticky-callout-content .background-image-svg {
        height: 135px;
        max-width: 320px;
        background-size: 100% 135px;
    }
    
    .sticky-callout-content .background-image-svg svg {
        height: 100px;
    }
    .sticky-callout-content .title-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        transform: none;
        left: auto;
        top: 30px;
    }
    .sticky-callout-content .title-text {
        text-align: center;
        font-size: var(--font-size-nav-button);
        line-height: var(--font-lh-nav-button);
    }

    .sticky-callout-content .title-button {
        margin: 0;
    }

    .sticky-callout-content .title-button .wp-block-button__link {
        font-size: var(--font-size-button-primary);
        line-height: var(--font-lh-button-primary);
    }
} 