/* Apply smooth transition to the header */
[data-id="2y7b4ycxv"] {
    transition: all 0.3s ease !important;
    position: sticky !important;
    top: 0;
    z-index: 9999;
}

/* Admin bar adjustment */
body.admin-bar [data-id="2y7b4ycxv"] {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar [data-id="2y7b4ycxv"] {
        top: 46px;
    }
}

/* Scrolled state */
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: auto !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Shrink text and make it subtle but readable on scroll */
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] h1,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] h2,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] h3,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] p,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] span,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] a {
    color: #4a5568 !important; /* Subtle dark gray */
    font-size: 0.9em !important; /* Shrink text slightly */
    transition: all 0.3s ease;
}

/* Adjust icons if present */
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] i,
body.is-scrolled-5b786833 [data-id="2y7b4ycxv"] svg {
    transform: scale(0.9);
    fill: #4a5568 !important;
    color: #4a5568 !important;
    transition: all 0.3s ease;
}