/**
 * Notable Works — home-page aligned UI
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --nw-primary: #0d7377;
    --nw-primary-light: #14a098;
    --nw-primary-dark: #074f51;
    --nw-accent: #f59e0b;
    --nw-bg: #f8fafc;
    --nw-card: #ffffff;
    --nw-text: #0f172a;
    --nw-text-secondary: #475569;
    --nw-muted: #64748b;
    --nw-border: #e2e8f0;
    --nw-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --nw-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
    --nw-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -5px rgba(15, 23, 42, 0.04);
    --nw-radius: 14px;
    --nw-radius-lg: 18px;
    --nw-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --nw-font-body: 'Inter', system-ui, sans-serif;
}

.notable-page {
    font-family: var(--nw-font-body);
    background: var(--nw-bg);
    color: var(--nw-text);
}

/* Hero */
.nw-hero {
    background: linear-gradient(135deg, var(--nw-primary) 0%, var(--nw-primary-dark) 100%);
    padding: 48px 0 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nw-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -12%;
    width: 48%;
    height: 180%;
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(18deg);
    pointer-events: none;
}

.nw-hero .container { position: relative; z-index: 1; }

.nw-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    font-size: 0.85rem;
}

.nw-breadcrumb a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.nw-breadcrumb a:hover { color: #fff; }
.nw-breadcrumb span { color: rgba(255, 255, 255, 0.45); }
.nw-breadcrumb .current { color: rgba(255, 255, 255, 0.95); }

.nw-hero-title {
    font-family: var(--nw-font-display);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.2;
}

.nw-hero-sub {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    line-height: 1.55;
}

.nw-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.nw-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nw-hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.nw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--nw-font-display);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nw-btn:hover { transform: translateY(-2px); text-decoration: none; }

.nw-btn-primary {
    background: linear-gradient(135deg, var(--nw-primary) 0%, var(--nw-primary-light) 100%);
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(13, 115, 119, 0.4);
}
.nw-btn-primary:hover { color: #fff; }

.nw-btn-light {
    background: #fff;
    color: var(--nw-primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.nw-btn-light:hover { color: var(--nw-primary); }

.nw-btn-outline {
    background: transparent;
    color: var(--nw-primary);
    border: 1.5px solid var(--nw-border);
}
.nw-btn-outline:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary-dark);
    background: rgba(13, 115, 119, 0.04);
}

.nw-btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.nw-btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Search */
.nw-search {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding: 0 0 8px;
}

.nw-search-card {
    background: var(--nw-card);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-lg);
    box-shadow: var(--nw-shadow-md);
    padding: 20px;
}

.nw-search-card label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nw-muted);
    margin-bottom: 6px;
}

.nw-search-card .form-control {
    border-radius: 10px;
    border: 1.5px solid var(--nw-border);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--nw-text);
    background: var(--nw-bg);
}

.nw-search-card .form-control:focus {
    border-color: var(--nw-primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
    background: #fff;
}

/* Section */
.nw-section { padding: 28px 0 56px; }

.nw-results {
    font-size: 0.9rem;
    color: var(--nw-muted);
    margin-bottom: 18px;
}

.nw-results strong { color: var(--nw-text); }

/* Grid cards */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.nw-card {
    background: var(--nw-card);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--nw-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.nw-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--nw-shadow-lg);
    border-color: rgba(13, 115, 119, 0.25);
    color: inherit;
    text-decoration: none;
}

.nw-card-cover {
    height: 180px;
    background: linear-gradient(135deg, #e6f4f4 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.nw-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nw-card-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--nw-primary);
    font-size: 2rem;
    opacity: 0.4;
}

.nw-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.nw-card-logo {
    position: absolute;
    bottom: -18px;
    right: 14px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: var(--nw-shadow-md);
    overflow: hidden;
    padding: 4px;
}

.nw-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nw-card-body {
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nw-card-title {
    font-family: var(--nw-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    line-height: 1.3;
    color: var(--nw-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-desc {
    color: var(--nw-text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--nw-border);
}

.nw-contributor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
}

.nw-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--nw-bg);
    border: 1px solid var(--nw-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nw-muted);
    font-size: 0.85rem;
    overflow: hidden;
}

.nw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-contributor-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--nw-text);
    margin: 0;
}

.nw-contributor-loc {
    font-size: 0.78rem;
    color: var(--nw-muted);
    margin: 0;
}

.nw-cost {
    font-size: 0.82rem;
    color: var(--nw-muted);
}

.nw-cost strong {
    color: var(--nw-primary);
    font-weight: 700;
}

/* Empty */
.nw-empty {
    text-align: center;
    padding: 64px 20px;
    background: var(--nw-card);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-lg);
}

.nw-empty i {
    font-size: 2.5rem;
    color: var(--nw-muted);
    margin-bottom: 14px;
}

.nw-empty h2 {
    font-family: var(--nw-font-display);
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.nw-empty p { color: var(--nw-muted); margin: 0 0 16px; }

/* Pagination */
.nw-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
}

.nw-pagination-info {
    font-size: 0.85rem;
    color: var(--nw-muted);
}

.nw-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nw-pages a,
.nw-pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--nw-border);
    background: #fff;
    color: var(--nw-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.nw-pages a:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary);
}

.nw-pages .active span {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #fff;
}

.nw-pages .disabled span {
    opacity: 0.45;
    cursor: default;
}

/* Detail layout */
.nw-detail { padding: 36px 0 56px; }

.nw-panel {
    background: var(--nw-card);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius-lg);
    box-shadow: var(--nw-shadow-sm);
    margin-bottom: 22px;
    overflow: hidden;
}

.nw-panel-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--nw-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nw-panel-head i { color: var(--nw-primary); }

.nw-panel-head h2 {
    font-family: var(--nw-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.nw-panel-body { padding: 22px; }

.nw-main-image {
    position: relative;
    border-radius: var(--nw-radius-lg);
    overflow: hidden;
    border: 1px solid var(--nw-border);
    background: linear-gradient(135deg, #e6f4f4 0%, #f1f5f9 100%);
    margin-bottom: 22px;
}

.nw-main-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.nw-main-image-empty {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nw-primary);
    font-size: 2.5rem;
    opacity: 0.35;
}

.nw-main-logo {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    box-shadow: var(--nw-shadow-md);
}

.nw-main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
}

.nw-desc {
    color: var(--nw-text-secondary);
    line-height: 1.75;
    font-size: 0.98rem;
    margin: 0;
}

.nw-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nw-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--nw-bg);
    border: 1px solid var(--nw-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nw-related-card:hover {
    border-color: var(--nw-primary);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.nw-related-cover {
    height: 100px;
    background: #e6f4f4;
    overflow: hidden;
}

.nw-related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-related-body { padding: 12px; }

.nw-related-title {
    font-family: var(--nw-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-related-meta {
    font-size: 0.75rem;
    color: var(--nw-muted);
}

.nw-sidebar .nw-panel-body { padding: 18px 22px 22px; }

.nw-person {
    display: flex;
    gap: 14px;
    align-items: center;
}

.nw-person-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--nw-bg);
    border: 1px solid var(--nw-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nw-muted);
    font-size: 1.4rem;
}

.nw-person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-person-name {
    font-family: var(--nw-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 2px;
}

.nw-person-role {
    font-size: 0.82rem;
    color: var(--nw-muted);
    margin: 0;
}

.nw-stat {
    padding: 14px 0;
    border-bottom: 1px solid var(--nw-border);
}

.nw-stat:last-child { border-bottom: none; }

.nw-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nw-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.nw-stat-value {
    font-family: var(--nw-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--nw-text);
}

.nw-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.nw-sidebar-actions .nw-btn { width: 100%; }

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

@media (max-width: 767px) {
    .nw-hero { padding: 36px 0 42px; }
    .nw-grid,
    .nw-related { grid-template-columns: 1fr; }
    .nw-card-cover { height: 160px; }
    .nw-section,
    .nw-detail { padding: 24px 0 40px; }
    .nw-search { margin-top: -20px; }
}
