#filters {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 2%;
    margin-bottom: 2%;
}

#reset {
    background-color: #007bff;
    border-color: #007bff;
}

.sector {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
}

.page-switch {
    padding: 20px;
    justify-content: space-between;
    font-size: 25px;
    font-family: DejaVu Sans Mono, monospace;
    text-align: center;
}

.page-switch .active {
    font-weight: bold;
    text-decoration: underline;
    color: #0056c7;
}

#view-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 20px;
}

#view-toggle .toggle-label {
    font-size: 13px;
    color: #666;
    margin-right: 4px;
}

.view-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.view-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}


/* ── Card grid ── */
#card-view {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 8px 0 32px;
}

.project-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    width: calc(33.333% - 16px);
    min-width: 240px;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s;
    border: 1.5px solid transparent;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 123, 255, 0.13);
    border-color: #90c8ff;
}

.project-card .card-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.project-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.project-card .card-body {
    padding: 18px 18px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
    line-height: 1.35;
}

.project-card .card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.project-card .sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.sector-tag {
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
}

.project-card .card-footer-strip {
    border-top: 1px solid #f0f0f0;
    padding: 10px 18px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card .year-badge {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.btn-details {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s;
    text-decoration: none;
}

.btn-details:hover {
    background: #0056c7;
    color: #fff;
    text-decoration: none;
}

/* ── Table view tweaks ── */
#table-view .table th {
    background: #f8f9fa;
    border-top: none;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

#table-view .table td {
    vertical-align: middle;
    font-size: 13px;
}

#table-view .table img {
    border-radius: 6px;
}

/* NEW PROJECT PAGE */
.projectpage {
    margin-left: 200px;
    margin-right: 200px;
}

.projectpage h1 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.projecthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.projectpage p strong {
    color: #0056c7;
}