.custom-page {
    padding-top: 20px;
    width: 100%;
}

.underline {
    text-decoration: underline !important;
}

.td-none,
.td-none a {
    text-decoration: none !important;
}

/* header */
#ast-desktop-header
    .header-widget-area.widget-area.site-header-focus-item.header-widget-area-inner {
    width: 100%;
}

#ast-desktop-header
    .ast-builder-grid-row.ast-builder-grid-row-has-sides.ast-grid-center-col-layout {
    grid-template-columns: 1fr 1fr 1fr;
}

/* header */
.site-header {
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.site-header[data-fixed] {
    position: fixed;
}

/* Default top */
.site-header {
    top: 0;
}

/* Logged-in admin bar (desktop) */
body.admin-bar .site-header {
    top: 32px;
}

/* Logged-in admin bar (mobile) */
@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header.is-sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#search-form {
    border: 1px solid #ebebeb;
    border-radius: 24px;
    background: #fff;
    font-size: 16px;
    color: #222;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 20px;
}

#search-form input {
    border: none;
    flex-grow: 1;
}

#search-form input:focus {
    outline: none;
}

#search-form button {
    flex-shrink: 0;
    color: white;
    height: 32px;
    width: 32px;
    background: var(--ast-global-color-0, #00da24);
    border-radius: 50%;
    padding: 4px;
}

.swiper-content img {
    width: 100% !important;
}

/* blog */
.wp-block-uagb-post-carousel .uagb-post__image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.blog-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--wp--preset--spacing--50);
}

.blog-item li {
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
    list-style: none;
    display: flex;
    flex-direction: column;
}

.blog-item figure a {
    display: block;
}

.blog-item li h2 {
    margin-bottom: 12px;
}

.blog-item li h2 a {
    font-size: 16px;
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item li img {
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    background-color: #d8d8d8;
}

.blog-item__store {
    font-size: 24px;
    color: var(--ast-global-color-0);
    text-decoration: none !important;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-item__link {
    color: black;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.blog-pagination {
    justify-content: center;
    gap: 8px;
}

// footer
.mc-footer {
    padding: 2rem;
    background-color: var(--ast-global-color-0);
}

.mc-footer__container {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.mc-footer__column {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.mc-footer__title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.mc-footer__link {
    text-align: start;
}

.mc-footer__link > a {
    color: white !important;
    text-decoration: none !important;
}

.mc-footer__link > a:hover {
    color: white !important;
    text-decoration: underline !important;
}

.mc-footer__social {
    display: flex;
    gap: 0.3rem;
}

.mc-footer__social .wp-block-social-links {
    margin: 0;
    gap: 8px;
}

.mc-footer__social svg {
    color: white !important;
}

@media (max-width: 768px) {
    .mc-footer__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .mc-footer__column:nth-child(5) {
        grid-column: span 2;
    }
}

@media screen and (max-width: 375px) {
    .mc-footer__container {
        display: flex;
        flex-direction: column;
    }
}
