.liaise-new-development-categories {
    width: 100%;
}

.ndc-tabs-wrapper {
    margin-bottom: 30px;
    display: inline-block;
    width: auto;
    text-align: inherit;
}

.ndc-tabs-wrapper[style*="display: block"],
.ndc-tabs-wrapper.ndc-full-width {
    width: 100% !important;
}

.ndc-tabs-wrapper[style*="display: inline-block"],
.ndc-tabs-wrapper.ndc-inline-block {
    width: auto !important;
}

.ndc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 0;
}

.ndc-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
}

.ndc-tab:hover {
    background: #e8e8e8;
    color: #0073aa;
}

.ndc-tab.active {
    background: #0073aa;
    color: #fff;
    border-bottom-color: #0073aa;
}

.ndc-content-wrapper {
    min-height: 200px;
}

.ndc-content {
    width: 100%;
}

.ndc-loading {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    animation: fadeIn 0.3s ease-in;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 20px 0;
}

.ndc-loading::before {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f0f0f0;
    border-top-color: #0073aa;
    border-right-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.2);
}

.ndc-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #0073aa;
    margin-top: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ndc-posts-grid {
    display: grid;
    grid-template-columns: repeat(var(--ndc-columns-mobile, 1), 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .ndc-posts-grid {
        grid-template-columns: repeat(var(--ndc-columns-tablet, var(--ndc-columns-mobile, 1)), 1fr);
    }
}

@media (min-width: 1025px) {
    .ndc-posts-grid {
        grid-template-columns: repeat(var(--ndc-columns, var(--ndc-columns-tablet, var(--ndc-columns-mobile, 1))), 1fr);
    }
}

.ndc-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.ndc-post-layout {
    display: flex;
    min-height: 300px;
}

.ndc-post-image-col {
    flex: 0 0 33.333%;
    position: relative;
    overflow: hidden;
}

.ndc-post-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f5f5;
}

.ndc-post-image-wrapper.ndc-no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ndc-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.ndc-post-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /*background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);*/
    padding: 20px;
    display: flex;
    align-items: flex-end;
    /*min-height: 80px;*/
}

.ndc-post-image-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);*/
}

.ndc-post-content-col {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.ndc-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ndc-post-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ndc-post-text {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ndc-post-dev-features {
    display: grid;
    grid-template-columns: repeat(var(--ndc-dev-features-columns-mobile, 1), 1fr);
    gap: var(--ndc-dev-features-gap-mobile, var(--ndc-dev-features-gap-tablet, var(--ndc-dev-features-gap, 15px)));
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ndc-post-dev-features {
        grid-template-columns: repeat(var(--ndc-dev-features-columns-tablet, var(--ndc-dev-features-columns-mobile, 1)), 1fr);
        gap: var(--ndc-dev-features-gap-tablet, var(--ndc-dev-features-gap, 15px));
    }
}

@media (min-width: 1025px) {
    .ndc-post-dev-features {
        grid-template-columns: repeat(var(--ndc-dev-features-columns, var(--ndc-dev-features-columns-tablet, var(--ndc-dev-features-columns-mobile, 1))), 1fr);
        gap: var(--ndc-dev-features-gap, 15px);
    }
}

.ndc-dev-feature-item {
    display: flex;
    align-items: center;
    gap: var(--ndc-dev-feature-gap, 12px);
    padding: var(--ndc-dev-feature-padding-mobile, var(--ndc-dev-feature-padding-tablet, var(--ndc-dev-feature-padding, 12px)));
    background: #f9f9f9;
    border-radius: 6px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.ndc-dev-feature-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

.ndc-dev-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.ndc-dev-feature-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.ndc-dev-feature-label {
    display: none;
}

.ndc-dev-feature-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
    overflow: visible;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .ndc-post-dev-features {
        grid-template-columns: repeat(var(--ndc-dev-features-columns-mobile, 1), 1fr) !important;
    }
    
    .ndc-dev-feature-item {
        padding: var(--ndc-dev-feature-padding-mobile, var(--ndc-dev-feature-padding-tablet, var(--ndc-dev-feature-padding, 12px)));
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }
    
    .ndc-dev-feature-content {
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }
    
    .ndc-dev-feature-value {
        font-size: 14px;
        overflow-wrap: break-word;
        word-break: normal;
        overflow: visible;
    }
    
    .ndc-dev-feature-icon {
        flex-shrink: 0;
    }
}

.ndc-post-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.ndc-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ndc-feature-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.ndc-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ndc-feature-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.ndc-post-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.ndc-post-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    width: auto;
    flex: 0 1 auto;
    min-width: 140px;
    box-sizing: border-box;
}

.ndc-post-button .ndc-button-text {
    display: inline-block;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.ndc-post-button .ndc-button-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ndc-post-button .ndc-button-icon-circle .ndc-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ndc-post-button .ndc-button-icon-circle .ndc-arrow-icon svg {
    width: 16px;
    height: 16px;
    color: #1e3a5f;
    stroke: #1e3a5f;
    transition: all 0.3s ease;
}

.ndc-post-button .ndc-button-icon-circle .ndc-arrow-icon svg * {
    stroke: #1e3a5f;
    fill: none;
}

.ndc-post-button .ndc-button-icon-circle .ndc-arrow-out {
    transform: translateX(0);
}

.ndc-post-button .ndc-button-icon-circle .ndc-arrow-in {
    transform: translateX(-100%);
}

.ndc-post-button:hover .ndc-button-icon-circle .ndc-arrow-out {
    transform: translateX(100%);
}

.ndc-post-button:hover .ndc-button-icon-circle .ndc-arrow-in {
    transform: translateX(0);
}

.ndc-post-button:hover {
    background: #152d47;
    color: #fff;
}

.ndc-post-button:hover .ndc-button-icon-circle {
    background: #fff;
}

.ndc-post-button:hover .ndc-button-icon-circle svg {
    color: #1e3a5f;
    stroke: #1e3a5f;
}

.ndc-post-button.ndc-make-referral {
    background: #1e3a5f;
}

.ndc-post-button.ndc-make-referral:hover {
    background: #152d47;
}

.ndc-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.ndc-load-more {
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ndc-load-more:hover:not(:disabled) {
    background: #005a87;
}

.ndc-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ndc-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.ndc-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3232;
    font-size: 16px;
}

@media (max-width: 768px) {
    .ndc-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .ndc-tab {
        width: 100%;
        border-radius: 4px;
        border-bottom: 2px solid transparent;
        margin-bottom: 0;
    }
    
    .ndc-tab.active {
        border-bottom-color: #0073aa;
    }
    
    .ndc-loading {
        padding: 40px 15px;
        min-height: 200px;
    }
    
    .ndc-loading::before {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .ndc-loading-text {
        font-size: 14px;
    }
    
    .ndc-posts-grid {
        grid-template-columns: repeat(var(--ndc-columns-mobile, 1), 1fr) !important;
        gap: 20px;
    }
    
    .ndc-post-layout {
        flex-direction: column;
    }
    
    .ndc-post-image-col {
        flex: 0 0 auto;
        height: 250px;
    }
    
    .ndc-post-content-col {
        flex: 1 1 auto;
    }
    
    .ndc-post-dev-features {
        grid-template-columns: repeat(var(--ndc-dev-features-columns-mobile, 1), 1fr) !important;
        gap: var(--ndc-dev-features-gap-mobile, var(--ndc-dev-features-gap-tablet, var(--ndc-dev-features-gap, 15px))) !important;
    }
    
    .ndc-post-features {
        grid-template-columns: 1fr;
    }
    
    .ndc-post-buttons {
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ndc-post-dev-features {
        grid-template-columns: repeat(var(--ndc-dev-features-columns-tablet, var(--ndc-dev-features-columns-mobile, 1)), 1fr) !important;
    }
    
    .liaise-new-development-categories .ndc-posts-grid {
        grid-template-columns: repeat(var(--ndc-columns-tablet, var(--ndc-columns-mobile, 1)), 1fr);
    }
}

/* Pagination Styles */
.ndc-pagination {
    margin-top: 40px;
    text-align: center;
}

.ndc-pagination-list {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.ndc-pagination-list li {
    margin: 0;
    padding: 0;
}

.ndc-pagination-link {
    display: inline-block;
    padding: 10px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    min-width: 40px;
    text-align: center;
}

.ndc-pagination-link:hover:not(.disabled):not(.active) {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ndc-pagination-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    cursor: default;
}

.ndc-pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
}

.ndc-pagination-dots {
    display: inline-block;
    padding: 10px 8px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ndc-pagination-list {
        gap: 3px;
    }
    
    .ndc-pagination-link {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* Tooltip Styles */
.ndc-tooltip {
    position: absolute;
    z-index: 10000;
    background: rgba(30, 58, 95, 0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(-5px);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ndc-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ndc-tooltip-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.ndc-tooltip-info {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.ndc-tooltip::after {
    content: '';
    position: absolute;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.ndc-tooltip.tooltip-above::after {
    bottom: -6px;
    border-top: 6px solid rgba(30, 58, 95, 0.95);
    border-bottom: none;
}

.ndc-tooltip.tooltip-below::after {
    top: -6px;
    border-bottom: 6px solid rgba(30, 58, 95, 0.95);
    border-top: none;
}

.ndc-tooltip-trigger {
    cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
    .ndc-tooltip-trigger {
        cursor: pointer;
    }
}

