/*
 * Page CSS: projects.html
 * Scope owner: project listing page only
 * Add page-specific overrides after legacy/shared naphat-home.css.
 */

body[data-ds-page-source="projects.html"] .nph-project-search-panel {
    grid-template-columns: minmax(185px, 0.88fr) repeat(4, minmax(180px, 1fr)) minmax(170px, 0.86fr);
    gap: 18px;
    align-items: center;
    margin-top: 34px;
}

body[data-ds-page-source="projects.html"] .nph-project-hero {
    background-position: center;
    background-size: cover;
}

body[data-ds-page-source="projects.html"] .nph-project-hero-bg {
    background-image: inherit;
    pointer-events: none;
}

body[data-ds-page-source="projects.html"] .nph-project-hero::after {
    pointer-events: none;
}

body[data-ds-page-source="projects.html"] .nph-project-search-copy {
    min-height: 72px;
}

body[data-ds-page-source="projects.html"] .nph-project-search-copy strong {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.22;
    white-space: nowrap;
}

body[data-ds-page-source="projects.html"] .nph-project-search-copy span {
    font-size: 13.5px;
    line-height: 1.35;
}

body[data-ds-page-source="projects.html"] .nph-project-filter {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 72px;
    height: 72px;
    padding: 0 17px 0 14px;
    column-gap: 12px;
    border-color: rgba(34, 88, 82, 0.22);
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(34, 88, 82, 0.09);
}

body[data-ds-page-source="projects.html"] .nph-project-filter::after {
    content: "";
    grid-column: 3;
    justify-self: end;
    width: 8px;
    height: 8px;
    border-right: 2px solid #00897d;
    border-bottom: 2px solid #00897d;
    transform: rotate(45deg) translateY(-2px);
    pointer-events: none;
}

body[data-ds-page-source="projects.html"] .nph-project-filter:focus-within {
    border-color: rgba(0, 137, 125, 0.52);
    box-shadow: 0 10px 22px rgba(0, 137, 125, 0.16);
}

body[data-ds-page-source="projects.html"] .nph-project-filter i {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    color: rgba(16, 120, 110, 0.74);
    font-size: 28px;
    line-height: 1;
}

body[data-ds-page-source="projects.html"] .nph-project-filter span {
    grid-column: 2;
    color: var(--nph-ink);
    font-size: 15px;
    line-height: 1.24;
    font-weight: 800;
}

body[data-ds-page-source="projects.html"] .nph-project-filter select {
    position: absolute;
    inset: 0;
    grid-column: auto;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

body[data-ds-page-source="projects.html"] .nph-project-search-button {
    min-height: 72px;
    height: 72px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(5, 78, 68, 0.2);
}

body[data-ds-page-source="projects.html"] .nph-project-search-button i {
    font-size: 24px;
}

body[data-ds-page-source="projects.html"] #recommended .nph-project-card,
body[data-ds-page-source="projects.html"] #recommended .nph-project-card:visited {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

body[data-ds-page-source="projects.html"] #recommended .nph-project-card:focus {
    outline: 2px solid rgba(0, 137, 125, 0.7);
    outline-offset: 4px;
}

@media (max-width: 1180px) {
    body[data-ds-page-source="projects.html"] .nph-project-search-panel {
        grid-template-columns: minmax(180px, 0.9fr) repeat(4, minmax(150px, 1fr)) minmax(158px, 0.84fr);
        gap: 14px;
    }
}

@media (max-width: 1024px) {
    body[data-ds-page-source="projects.html"] .nph-project-search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    body[data-ds-page-source="projects.html"] .nph-project-search-copy,
    body[data-ds-page-source="projects.html"] .nph-project-search-button {
        grid-column: 1 / -1;
    }

    body[data-ds-page-source="projects.html"] .nph-project-search-copy strong {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    body[data-ds-page-source="projects.html"] .nph-project-search-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    body[data-ds-page-source="projects.html"] .nph-project-search-copy {
        min-height: 0;
    }

    body[data-ds-page-source="projects.html"] .nph-project-filter,
    body[data-ds-page-source="projects.html"] .nph-project-search-button {
        min-height: 66px;
        height: 66px;
    }
}
