/**
 * Projects Portal - Single Project Page Modern Styling
 */

/* Breadcrumb Navigation */
.project-breadcrumbs {
    margin-bottom: 25px;
    font-size: 0.9rem;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.project-breadcrumbs:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #f1f3f5;
}

.project-breadcrumbs a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 8px;
}

.project-breadcrumbs a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.project-breadcrumbs a:first-child {
    padding-left: 0;
}

.project-breadcrumbs span {
    color: #7f8c8d;
    padding-left: 8px;
    font-weight: 500;
}

.project-breadcrumbs a:after,
.project-breadcrumbs span:before {
    content: '\203A';
    display: inline-block;
    margin: 0 8px;
    color: #bdc3c7;
    font-size: 1.2em;
    line-height: 1;
}

.project-breadcrumbs a:last-of-type:after {
    content: '\203A';
    display: inline-block;
    margin: 0 8px;
    color: #bdc3c7;
    font-size: 1.2em;
    line-height: 1;
}

.project-breadcrumbs span:before {
    content: '';
}

/* Responsive breadcrumb styles */
@media screen and (max-width: 576px) {
    .project-breadcrumbs {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .project-breadcrumbs a:after,
    .project-breadcrumbs span:before {
        margin: 0 4px;
    }
}

/* Modern project display styling */
.projects-portal-single {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Project header with background image and gradient */
.projects-portal-single .project-header {
    margin-bottom: 40px;
    position: relative;
    padding: 40px 30px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.9) 0%, rgba(142, 68, 173, 0.9) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 200px; /* Fixed height for tablet and desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects-portal-single .project-header:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.2;
    transform: rotate(-30deg);
    pointer-events: none;
}

.projects-portal-single .project-header:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.projects-portal-single .project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.projects-portal-single .project-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    font-weight: 300;
    letter-spacing: 0.3px;
    max-width: 800px;
}

/* Project content layout */
.projects-portal-single .project-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

/* Project details card */
.projects-portal-single .project-details {
    flex: 0 0 30%;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.projects-portal-single .project-details:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.projects-portal-single .project-details:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, #3498db, #9b59b6);
}

/* Project details heading */
.projects-portal-single .project-details h3 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 0; /* remove underline spacing */
    border-bottom: none; /* remove dashed underline */
}

/* Project information section */
.projects-portal-single .project-information {
    flex: 0 0 65%;
    background: #fff;
    padding: 30px;
    padding-bottom: 50px; /* extra space at bottom inside the panel */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.projects-portal-single .project-information:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Project information section dividers */
.projects-portal-single .project-information > div {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.projects-portal-single .project-information > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Meta items styling */
.projects-portal-single .meta-item {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    position: relative;
    padding-left: 28px;
}

.projects-portal-single .meta-item:before {
    content: '\f05a'; /* Default icon (info circle) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    color: rgba(41, 128, 185, 0.8);
    transition: all 0.3s ease;
}

/* Specific icons for different meta items */
.projects-portal-single .meta-item.project-id:before { content: '\f02c'; } /* tag */
.projects-portal-single .meta-item.donor:before { content: '\f0d6'; } /* money */
.projects-portal-single .meta-item.funding:before { content: '\f155'; } /* dollar sign */
.projects-portal-single .meta-item.expenditure:before { content: '\f53a'; } /* chart */
.projects-portal-single .meta-item.implementing:before { content: '\f275'; } /* building */
.projects-portal-single .meta-item.contact:before { content: '\f007'; } /* user */
.projects-portal-single .meta-item.agency:before { content: '\f1ad'; } /* building-o */
.projects-portal-single .meta-item.location:before { content: '\f3c5'; } /* map marker */
.projects-portal-single .meta-item.division:before { content: '\f279'; } /* map */
.projects-portal-single .meta-item.channel:before { content: '\f0ac'; } /* globe */
.projects-portal-single .meta-item.type:before { content: '\f5fd'; } /* layer-group */
.projects-portal-single .meta-item.sector:before { content: '\f1b9'; } /* car */
.projects-portal-single .meta-item.status:before { content: '\f0ae'; } /* tasks */
.projects-portal-single .meta-item.exchange:before { content: '\f362'; } /* exchange-alt */

.projects-portal-single .meta-item {
    position: relative;
    padding: 12px 15px 12px 30px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
    background-color: rgba(236, 240, 241, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.projects-portal-single .meta-item:hover {
    background-color: rgba(236, 240, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding-left: 32px;
}

.projects-portal-single .meta-item:hover:before {
    color: rgba(142, 68, 173, 0.8);
    transform: scale(1.1);
}

.projects-portal-single .meta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.projects-portal-single .meta-item span.meta-label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.projects-portal-single .meta-item span.meta-value {
    font-size: 1rem;
    color: #2c3e50;
    word-break: break-word;
    line-height: 1.5;
}

/* Meta item icons */
.projects-portal-single .project-meta-item:before {
    font-family: 'dashicons';
    position: absolute;
    left: 0;
    top: 0;
    color: #3498db;
    transition: transform 0.3s ease, color 0.3s ease;
}

.projects-portal-single .project-meta-item:hover:before {
    transform: translateX(2px) scale(1.1);
    color: #9b59b6;
}

.projects-portal-single .project-meta-item {
    font-size: 1.2rem;
    opacity: 0.8;
}

.projects-portal-single .project-meta-item.project-id:before { content: '\f481'; } /* ID icon */
.projects-portal-single .project-meta-item.status:before { content: '\f173'; } /* Status icon */
.projects-portal-single .project-meta-item.date:before { content: '\f508'; } /* Calendar icon */
.projects-portal-single .project-meta-item.donor:before { content: '\f307'; } /* Person icon */
.projects-portal-single .project-meta-item.currency:before { content: '\f526'; } /* Money icon */
.projects-portal-single .project-meta-item.amount:before { content: '\f185'; } /* Chart icon */
.projects-portal-single .project-meta-item.budget:before { content: '\f203'; } /* Tag icon */
.projects-portal-single .project-meta-item.expenditure:before { content: '\f316'; } /* Calculator icon */
.projects-portal-single .project-meta-item.implementing-agency:before { content: '\f12f'; } /* Building icon */
.projects-portal-single .project-meta-item.contact-person:before { content: '\f336'; } /* User icon */
.projects-portal-single .project-meta-item.partner-agency:before { content: '\f307'; } /* Person icon */

/* Table styling */
.projects-portal-single table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    table-layout: fixed;
}

@media (max-width: 767px) {
    .projects-portal-single table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        border-radius: 8px;
        transform: none !important;
    }
    
    .projects-portal-single table caption {
        white-space: normal;
        font-size: 1rem;
    }
    
    .projects-portal-single table th,
    .projects-portal-single table td {
        padding: 12px 15px;
    }
}

.projects-portal-single table {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.projects-portal-single table th,
.projects-portal-single table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.projects-portal-single table td {
    font-size: 0.95rem;
    line-height: 1.5;
}

.projects-portal-single table td a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px dotted transparent;
}

.projects-portal-single table td a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

.projects-portal-single table td strong,
.projects-portal-single table td b {
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.1), transparent);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 -2px;
    display: inline-block;
}

.projects-portal-single table td a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.projects-portal-single table td a:hover:after {
transform: scaleX(1);
transform-origin: bottom left;
}

.projects-portal-single table td strong,
.projects-portal-single table td b {
    color: #333;
    font-weight: 600;
}

.projects-portal-single table caption {
    text-align: left;
    padding: 15px 0 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    position: relative;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.projects-portal-single table caption:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 70px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Caption width is now fixed */

.projects-portal-single table tr {
    position: relative;
}

/* Removed hover background effect */

/* Removed hover indicator effect */

.projects-portal-single table caption {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: left;
    position: relative;
    padding-bottom: 12px;
}

.projects-portal-single table caption::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    border-radius: 3px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 0.7; transform: translateX(0); }
}

.projects-portal-single table th {
    background: #2c3e50;
    color: #000000;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-shadow: none;
    position: relative;
    padding-top: 18px;
    padding-bottom: 18px;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.2);
}

/* Removed header hover effect */

/* Removed animated line under header */

/* Removed header hover effect */

.projects-portal-single table tr:nth-child(even) {
    background: linear-gradient(to right, #f9f9f9, #f5f5f5);
}

/* Style all tables consistently */
.projects-portal-single table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Set proper table layout */
.projects-portal-single table.nap-themes-table,
.projects-portal-single table.nap-outcomes-table,
.projects-portal-single table.nap-activities-table {
    table-layout: auto;
}

/* Header cells */
.projects-portal-single table th {
    text-align: left;
}

/* Ensure cells expand properly */
.projects-portal-single table td {
    word-wrap: break-word;
    vertical-align: top;
    padding: 15px;
    text-align: left;
}

/* First column in tables width */
.projects-portal-single table.nap-themes-table td:first-child,
.projects-portal-single table.nap-outcomes-table td:first-child,
.projects-portal-single table.nap-activities-table td:first-child {
    width: 30%;
    min-width: 180px;
}

/* Second column should take most of the space */
.projects-portal-single table.nap-themes-table td:last-child,
.projects-portal-single table.nap-outcomes-table td:last-child,
.projects-portal-single table.nap-activities-table td:last-child {
    width: 70%;
}

/* Format content inside table cells properly */
.projects-portal-single table td p {
    margin: 0 0 10px 0;
}

.projects-portal-single table td p:last-child {
    margin-bottom: 0;
}

/* Add subtle border between cells */
.projects-portal-single table td {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Fix table header styling */
.projects-portal-single table thead th {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Table row styles normalized */

/* Removed row hover transform effect */

.projects-portal-single table tr:last-child td {
    border-bottom: none;
    position: relative;
}

.projects-portal-single table tr:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.7), rgba(155, 89, 182, 0.7));
    border-radius: 0 0 8px 8px;
}

.projects-portal-single table tr:hover {
    background-color: #ecf0f1;
}

/* NAP Information table specific styling */
.nap-information-table th:first-child,
.important-links-table th:first-child {
    border-top-left-radius: 8px;
}

.nap-information-table th:last-child,
.important-links-table th:last-child {
    border-top-right-radius: 8px;
}

.nap-information-table td,
.important-links-table td {
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Important Links table specific styling */
.important-links-table td a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.important-links-table td a:hover {
    color: #2980b9;
    transform: translateX(3px);
}

/* Ensure wrapping for Important Links: Description and long URLs */
.important-links-table td,
.important-links-table td a {
    white-space: normal;
    word-break: break-word; /* modern */
    overflow-wrap: anywhere; /* modern */
}

/* Prefer breaking anywhere for very long continuous strings (URLs) */
.important-links-table td:nth-child(2) a {
    word-break: break-all; /* fallback for older browsers */
}

/* Section headings */
.projects-portal-single h2,
.projects-portal-single h3,
.projects-portal-single h4 {
    position: relative;
    padding-bottom: 12px;
    margin-top: 35px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.projects-portal-single h2:before,
.projects-portal-single h3:before,
.projects-portal-single h4:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    transition: width 0.3s ease;
}

.projects-portal-single h2:hover:before,
.projects-portal-single h3:hover:before,
.projects-portal-single h4:hover:before {
    width: 100px;
}

.projects-portal-single h2:after,
.projects-portal-single h3:after,
.projects-portal-single h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: linear-gradient(to right, #3498db, #9b59b6);
}

/* Modern section title styling */
.section-title {
    margin-bottom: 30px;
    /* Remove underline space */
    padding-bottom: 0;
    color: #2c3e50;
    font-size: 1.7rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title:before { content: none !important; display: none !important; }

.section-title:after { content: none !important; display: none !important; }

.projects-portal-single h3.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 0; /* remove extra left padding for underline */
}

.projects-portal-single h3.section-title:after { content: none !important; display: none !important; }

/* Related posts section */
.projects-portal-single .related-posts {
    margin-top: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.projects-portal-single .related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.projects-portal-single .related-post-item {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.projects-portal-single .related-post-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.projects-portal-single .related-post-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.projects-portal-single .related-post-item img {
    max-width: 100px;
    height: auto;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.projects-portal-single .related-post-item p {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.projects-portal-single .related-post-item:after {
    content: "";
    display: table;
    clear: both;
}

/* Project map container */
.project-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.project-map-container iframe {
    width: 100%;
    border: none;
    min-height: 350px;
}

/* View All Button */
.view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    color: white !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* PDFs section styling */
.project-documents {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.project-documents h4 {
    margin-top: 0;
}

.project-documents .document-link {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
}

.project-documents .document-link:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.project-documents .document-link:before {
    content: "📄";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .projects-portal-single .project-content-wrapper {
        flex-direction: column;
    }
    
    .projects-portal-single .project-info-wrapper {
        flex-direction: column;
    }
    
    .projects-portal-single .project-details,
    .projects-portal-single .project-information {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .projects-portal-single .related-post-item {
        flex: 0 0 100%;
    }
    
    .projects-portal-single table {
        width: 100% !important;
        display: table;
        table-layout: fixed;
    }
    
    .projects-portal-single table th,
    .projects-portal-single table td {
        word-break: break-word;
    }
    
    .projects-portal-single .meta-item-wrapper {
        display: block;
    }
    
    .projects-portal-single .meta-label,
    .projects-portal-single .meta-value {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    
    .projects-portal-single .meta-label {
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .projects-portal-single .project-meta-item {
        padding: 12px 0;
    }
}

@media screen and (max-width: 768px) {
    .projects-portal-single table.nap-themes-table td:first-child,
    .projects-portal-single table.nap-outcomes-table td:first-child,
    .projects-portal-single table.nap-activities-table td:first-child {
        width: 100px;
        min-width: 100px;
    }
}

@media screen and (max-width: 576px) {
    .projects-portal-single .project-header {
        padding: 25px 15px;
        height: auto; /* Allow flexible height on mobile */
        min-height: 150px; /* Set minimum height for very small screens */
    }
    
    .projects-portal-single .project-header h1 {
        font-size: 1.8rem;
    }
    
    /* Responsive table layout for very small screens */
    .projects-portal-single table.nap-themes-table,
    .projects-portal-single table.nap-outcomes-table,
    .projects-portal-single table.nap-activities-table,
    .projects-portal-single table.important-links-table {
        display: block;
        width: 100%;
    }
    
    .projects-portal-single table thead {
        display: none;
    }
    
    .projects-portal-single table tbody,
    .projects-portal-single table tr {
        display: block;
        width: 100%;
    }
    
    .projects-portal-single table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 8px;
    }
    
    .projects-portal-single table.nap-themes-table td:first-child,
    .projects-portal-single table.nap-outcomes-table td:first-child,
    .projects-portal-single table.nap-activities-table td:first-child {
        font-weight: 700;
        background: rgba(0,0,0,0.03);
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    
    .projects-portal-single table.important-links-table td:first-child {
        font-weight: 700;
        background: rgba(0,0,0,0.03);
    }
    
    .projects-portal-single table.important-links-table td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        margin-bottom: 5px;
    }
}

.project-navigation {
	display: flex;
	justify-content: space-between;
	padding: 18px 20%;
	border-top: 1px solid #eaeaea;
	border-bottom: 1px solid #eaeaea;
	margin: 30px 0;
}

/* Borderless overrides for Single Project UI */
/* These rules intentionally remove all borders/dividers to achieve a clean, borderless look */
.projects-portal-single .project-details,
.projects-portal-single .project-information,
.projects-portal-single table {
  border: none !important;
  box-shadow: none !important;
}

.projects-portal-single .project-information > div,
.projects-portal-single table th,
.projects-portal-single table td,
.projects-portal-single table thead th,
.project-navigation {
  border: none !important;
}

/* Remove any decorative bottom lines */
.projects-portal-single table tr:last-child::after { content: none !important; }

/* Ensure headings show no underline bars if they look like borders */
.projects-portal-single h2:after,
.projects-portal-single h3:after,
.projects-portal-single h4:after { content: none !important; }

/* Remove decorative gradient bar on the Project Details card */
.projects-portal-single .project-details:before { content: none !important; }

/* Status badges (match dashboard colors) */
.status-badge {
  padding: 0;
  border-radius: 0;
  display: inline;
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  color: inherit;
}

/* Planned: distinct color, no background */
.status-badge.status-planned {
  background: none;
  color: #ff9800;
  font-weight: 600;
}

/* Canonical & legacy mappings */
.status-active,
.status-in-progress { /* legacy */
background-color: #e0f7fa;
  color: #00838f;
  font-size: 16px !important;
  padding: 5px;
  width: 19% !important;
  display: block !important;

}

.status-planning { /* legacy */
  background-color: #e3f2fd;
  color: #0277bd;
}

.status-completed {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-on-hold { /* legacy */
  background-color: #ffefc2;
  color: #cc8800;
}
