@keyframes ag-loading-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ag-updating {
    position: relative !important;
    overflow: hidden !important;
    transform: translateZ(0);
    isolation: isolate;
    contain: paint layout;
}

.ag-updating::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: 50;
    pointer-events: none !important;
}

.ag-updating::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: ag-loading-shimmer 1.5s infinite linear;
    z-index: 51;
    pointer-events: none !important;
    will-change: transform;
}

body.dark-mode .ag-updating::before {
    background: rgba(15, 23, 42, 0.5);
}

body.dark-mode .ag-updating::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

img,
picture img,
figure img,
.wp-block-image img,
.wp-block-image picture img,
.wp-block-gallery img,
.wp-block-gallery picture img,
.wp-block-column img,
.wp-block-column picture img,
.wp-block-media-text img,
.wp-block-media-text picture img,
.wp-block-cover img,
.wp-block-cover picture img,
figure.wp-block-video video,
figure.wp-block-embed iframe,
.entry-content img,
.entry-content picture img {
    border-radius: 12px !important;
}

.wp-block-image,
.wp-block-image figure,
.wp-block-gallery,
.wp-block-gallery figure,
.wp-block-column figure,
.wp-block-media-text figure,
.wp-block-cover,
figure.wp-block-video,
figure.wp-block-embed {
    overflow: visible !important;
}

.wp-block-html div[id] { border-radius: 12px !important; overflow: hidden !important; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.wp-block-html div[id] iframe { border-radius: 12px !important; }
.has-background:not(figure), .has-gradient-background:not(figure) { border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); }

.wp-block-image:not(.alignfull):not(.alignwide):not(.is-resized) img,
.wp-block-image:not(.alignfull):not(.alignwide):not(.is-resized) picture img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: inline-block;
}

.wp-block-image.is-resized img,
.wp-block-image.is-resized picture img {
    width: auto;
    max-width: 100% !important;
    height: auto !important;
}

.wp-block-column .wp-block-image:not(.is-resized) img,
.wp-block-column .wp-block-image:not(.is-resized) picture img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
}

.wp-block-image.aligncenter {
    text-align: center;
    display: table;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: both;
}

.wp-block-image.aligncenter picture,
.wp-block-image.aligncenter img {
    display: block;
    margin: 0 auto;
}

.wp-block-image.is-resized {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: transparent !important;
    background-color: transparent !important;
}

body.dark-mode {
    background-color: transparent !important;
    color: #f3f4f6;
}

.site {
    width: 100%;
    overflow: visible;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-header,
.site-content,
.site-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.ag-container {
    width: 100%;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

a {
    transition: color 0.3s ease;
}

a:hover {
    color: #001a33 !important;
}

.download-btn:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    color: #ffffff !important;
}

.custom-button-wrapper {
    text-decoration: none;
    display: inline-flex;
}

.custom-button-wrapper .cssbuttons-io-button {
    background: #2948CC;
    color: white;
    font-family: inherit;
    padding: 0.3em 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #1E3ABF;
    overflow: hidden;
    position: relative;
    height: 2.6em;
    padding-right: 3.3em;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    transform: translateZ(0);
}

.custom-button-wrapper .cssbuttons-io-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #3F54D9;
    right: 0.3em;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    will-change: width;
}

.custom-button-wrapper .cssbuttons-io-button:hover .icon {
    width: calc(100% - 0.6em);
}

.custom-button-wrapper .cssbuttons-io-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #3F54D9;
}

.custom-button-wrapper .cssbuttons-io-button:hover .icon svg {
    transform: translateX(0.1em);
}

.custom-button-wrapper .cssbuttons-io-button:active .icon {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .custom-button-wrapper .cssbuttons-io-button {
        font-size: 14px;
        height: 2.4em;
        padding-left: 1em;
        padding-right: 2.8em;
        padding-top: 0.25em;
        padding-bottom: 0.25em;
    }

    .custom-button-wrapper .cssbuttons-io-button .icon {
        height: 2.1em;
        width: 2.1em;
        right: 0.2em;
    }

    .custom-button-wrapper .cssbuttons-io-button .icon svg {
        width: 0.9em;
    }
}