.vnp-projects {
    --vnp-color: #004e70;
    --vnp-gap: 24px;
    --vnp-columns: 3;
    --vnp-tablet-columns: 2;
    color: var(--vnp-color);
    width: 100%;
    margin: 24px 0;
    font-family: inherit;
    text-align: left;
    position: relative;
    scroll-margin-top: 100px;
}
.vnp-projects *, .vnp-gallery *, .vnp-address * { box-sizing: border-box; }
.vnp-projects [hidden] { display: none !important; }
.vnp-projects a { color: inherit; text-decoration: none; }
.vnp-projects a:hover { color: inherit; text-decoration: none; }
.vnp-projects a:focus-visible, .vnp-projects button:focus-visible,
.vnp-projects .vnp-track:focus-visible {
    outline: 3px solid var(--vnp-color);
    outline-offset: 4px;
}
.vnp-content:focus { outline: none; }
.vnp-content[aria-busy="true"] .vnp-items { opacity: .5; }
.vnp-grid { display: grid; grid-template-columns: repeat(var(--vnp-columns), minmax(0, 1fr)); gap: var(--vnp-gap); }
.vnp-projects .vnp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 5px 16px rgb(0 0 0 / 12%);
}
.vnp-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #edf2f4; }
.vnp-projects .vnp-media .vnp-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}
.vnp-image-hover { opacity: 0; transition: opacity .3s ease; }
@media (hover: hover) { .vnp-media:hover .vnp-image-hover { opacity: 1; } }
.vnp-card:focus-within .vnp-image-hover { opacity: 1; }
.vnp-placeholder { display: grid; place-items: center; height: 100%; color: #75909a; }
.vnp-placeholder svg { width: 64px; height: 64px; }
.vnp-badge {
    position: absolute;
    top: 13%;
    right: 0;
    max-width: 92%;
    padding: 7px 12px;
    border-radius: 0 0 0 13px;
    background: #fff;
    color: var(--vnp-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.vnp-body { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2vw, 28px); }
.vnp-projects .vnp-title {
    margin: 0 0 16px;
    color: var(--vnp-color);
    font-family: inherit;
    font-size: clamp(20px, 1.9vw, 28px);
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.vnp-projects .vnp-title a:hover { opacity: .8; }
.vnp-address { display: flex; align-items: flex-start; gap: 9px; color: var(--vnp-color, #004e70); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.vnp-address svg { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; }
.vnp-address span { min-width: 0; }
.vnp-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 38px; font-size: 14px; line-height: 1.5; }
.vnp-footer time { color: #737373; white-space: nowrap; }
.vnp-detail { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
.vnp-detail svg { flex: 0 0 28px; width: 28px; height: 28px; padding: 3px; border-radius: 50%; color: #fff; background: var(--vnp-color); transition: transform .2s ease; }
.vnp-detail:hover svg { transform: translateX(3px); }
.vnp-filter-nav {
    --vnp-color: #004e70;
    color: var(--vnp-color);
    font-family: inherit;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    margin: 0 0 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.vnp-filter-nav::-webkit-scrollbar { display: none; }
.vnp-filter-nav a:focus-visible {
    outline: 3px solid var(--vnp-color);
    outline-offset: 3px;
}
.vnp-filter-nav > a {
    flex: 1 1 0;
    min-width: max-content;
    border-radius: 999px !important;
    border-color: transparent !important;
    background: #c4c4c4 !important;
    color: #333 !important;
    white-space: nowrap;
    text-align: center;
}
.vnp-filter-nav > a:hover { background: #b4b4b4 !important; color: #222 !important; }
.vnp-filter-nav > a[aria-current="true"] { background: #004e70 !important; color: #fff !important; }
.vnp-filter-error { margin: -14px 0 20px; color: #8b1e1e; font-size: 14px; }
.vnp-filters a, .vnp-pagination a, .vnp-projects button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 15px;
    border: 1px solid #cfdee5;
    border-radius: 6px;
    background: #fff;
    color: var(--vnp-color);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}
.vnp-filters a:hover, .vnp-pagination a:hover, .vnp-projects button:hover { background: #eef5f8; }
.vnp-filters a[aria-current], .vnp-pagination a[aria-current] { background: var(--vnp-color); border-color: var(--vnp-color); color: #fff; }
.vnp-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.vnp-pagination a { padding: 8px; }
.vnp-empty { padding: 36px 20px; text-align: center; background: #f4f7f8; border-radius: 12px; }
.vnp-projects .vnp-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vnp-projects .vnp-status-visible { position: static; width: auto; height: auto; margin: 16px 0; overflow: visible; clip-path: none; white-space: normal; }
.vnp-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--vnp-columns) - 1) * var(--vnp-gap)) / var(--vnp-columns)); gap: var(--vnp-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: thin; scrollbar-color: #9bbac8 #edf2f4; }
.vnp-track > .vnp-card { scroll-snap-align: start; }
.vnp-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.vnp-projects button:disabled { opacity: .35; cursor: default; }
.vnp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.vnp-gallery figure { margin: 0; }
.vnp-gallery img { display: block; width: 100%; height: auto; border-radius: 8px; }
@media (max-width: 849px) {
    .vnp-filter-nav > a { flex: 0 0 auto; }
    .vnp-grid { grid-template-columns: repeat(var(--vnp-tablet-columns), minmax(0, 1fr)); }
    .vnp-track { grid-auto-columns: calc((100% - (var(--vnp-tablet-columns) - 1) * var(--vnp-gap)) / var(--vnp-tablet-columns)); }
    .vnp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 549px) {
    .vnp-grid, .vnp-gallery { grid-template-columns: minmax(0, 1fr); }
    .vnp-track { grid-auto-columns: 100%; }
    .vnp-projects .vnp-title { font-size: 23px; }
    .vnp-body { padding: 22px; }
    .vnp-pagination { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .vnp-projects *, .vnp-projects *::before, .vnp-projects *::after,
    .vnp-category-filter, .vnp-category-filter * { transition: none !important; scroll-behavior: auto !important; }
}
