/* Site-wide header & footer refresh */
.site-footer {
    background: #0f172a !important;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-contact-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
}

.site-footer .contact-deatil p,
.site-footer .contact-deatil a,
.site-footer .contact-title {
    color: rgba(255, 255, 255, 0.85) !important;
}

.site-footer .widget-title {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 16px;
}

.site-footer .widget-underline a,
.site-footer .widget a {
    color: rgba(255, 255, 255, 0.72) !important;
    transition: color 0.2s ease;
}

.site-footer .widget-underline a:hover,
.site-footer .widget a:hover {
    color: var(--nmx-primary) !important;
}

.site-footer .bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.site-footer .copy-right {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
}

.site-footer .img-textwidget.primary-bg {
    background: transparent !important;
}

.site-footer .textwidget.widget-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.site-footer .footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.site-footer .footer-social-links a:hover {
    background: var(--nmx-primary);
}

.site-header:not(.site-header-transparent) {
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* Nail salon hero location box */
.home-banner .nmx-nails-loc {
    margin-bottom: 14px;
}

.home-banner .nmx-nails-loc .search_loc {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-banner .nmx-nails-loc #search_loc {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    outline: none;
    min-width: 0;
}

.home-banner .nmx-nails-loc #search_loc::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.home-banner .nmx-search--nails {
    max-width: 520px;
}

/* Articles grid */
.nmx-articles__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nmx-article-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--nmx-border);
    border-radius: var(--nmx-radius);
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nmx-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nmx-shadow-hover);
    border-color: rgba(18, 150, 219, 0.35);
    text-decoration: none;
    color: inherit;
}

.nmx-article-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    margin: 0;
    background: var(--nmx-bg-alt);
}

.nmx-article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nmx-article-card__body {
    padding: 16px;
}

.nmx-article-card__body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--nmx-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.nmx-article-card__body p {
    font-size: 13px;
    color: var(--nmx-text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nmx-articles__pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nmx-articles__pagination .page-link {
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid var(--nmx-border);
    background: #fff;
    color: var(--nmx-primary);
    text-decoration: none;
}

.nmx-articles__pagination .page-link.current,
.nmx-articles__pagination .page-link:hover {
    background: var(--nmx-primary);
    border-color: var(--nmx-primary);
    color: #fff;
}

@media (max-width: 991px) {
    .nmx-articles__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .nmx-articles__grid {
        grid-template-columns: 1fr;
    }
}
