@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700;800&display=swap');

.bctp-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: var(--bctp-bg);
    font-family: 'Instrument Sans', sans-serif;
}

.bctp-main {
    flex: 1;
    min-width: 0;
}

.bctp-sidebar {
    width: 360px;
    flex-shrink: 0;
}

.bctp-header h2 {
    margin: 0 0 6px;
    line-height: 1.2;
    font-size: 32px;
    font-weight: 700;
}

.bctp-header p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b7280;
}

.bctp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.bctp-tab {
    padding: 8px 18px;
    border: 1px solid var(--bctp-border);
    background: var(--bctp-card-bg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    color: var(--bctp-text);
}

.bctp-tab:hover {
    background: #0052d5;
    border-color: var(--bctp-primary);
    color: #fff;
    font-weight: 600;
}

.bctp-tab.active {
    background: #0052d5;
    border-color: var(--bctp-primary);
    color: #fff;
    font-weight: 600;
}

.bctp-posts-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 200px;
}

.bctp-post-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    background: var(--bctp-card-bg);
    border-bottom: 1px solid var(--bctp-border);
    transition: all 0.2s;
    align-items: stretch;
    min-height: 180px;
}
.bctp-post-card:first-child {
    padding-top: 0;
}

.bctp-post-card:last-child {
    border-bottom: none;
}

.bctp-post-card:hover {
    background: #f9fafb;
}


.bctp-thumb {
    width: 240px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex; /* Add this */
}

.bctp-thumb img {
    width: 100%;
    height: 100%; /* Remove position: absolute */
    object-fit: cover;
    display: block;
}

.bctp-no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.bctp-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2px;
}

.bctp-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    color: var(--bctp-primary);
}

.bctp-post-content h3 {
    margin: 0 0 8px;
    line-height: 1.3;
    font-size: 18px;
    font-weight: 700;
}

.bctp-post-content h3 a {
    text-decoration: none;
    color: var(--bctp-text);
    transition: 0.2s;
}

.bctp-post-content h3 a:hover {
    color: var(--bctp-primary) !important;
}

.bctp-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.bctp-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bctp-meta svg {
    stroke-width: 2;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #9ca3af;
}

.bctp-post-content p {
    line-height: 1.6;
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bctp-readmore {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bctp-primary);
    transition: 0.2s;
    margin-top: auto;
}

.bctp-readmore:hover {
    gap: 6px;
}

.bctp-view-all {
    text-align: center;
    margin-top: 32px;
}

.bctp-btn-outline {
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s;
    padding: 12px 32px;
    border: 1px solid var(--bctp-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bctp-text);
    background: var(--bctp-card-bg);
}

.bctp-btn-outline:hover {
    border-color: var(--bctp-final-btn-hover-bg) !important;
    background: var(--bctp-final-btn-hover-bg) !important;
    color: #fff !important;
}

.bctp-widget {
    background: var(--bctp-card-bg);
    border: 1px solid var(--bctp-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.bctp-widget h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--bctp-text);
}

.bctp-top-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none !important;
    color: inherit;
    transition: 0.2s;
    align-items: center;
}

.bctp-top-post:last-child {
    margin-bottom: 0;
}

.bctp-top-post:hover h4 {
    color: var(--bctp-primary);
}

.bctp-top-thumb {
    width: 125px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.bctp-top-thumb img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.bctp-no-thumb-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a){
    text-decoration: none;
}

.bctp-top-content {
    flex: 1;
    min-width: 0;
}

.bctp-top-post h4 {
    margin: 0 0 4px;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 600;
    color: var(--bctp-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.bctp-top-post span {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--bctp-primary);
    text-decoration: none !important;
}

.bctp-top-post:hover h4,
.bctp-top-post:hover span {
    text-decoration: none !important;
}


.bctp-top-post span {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--bctp-primary);
}

.bctp-top-post svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

.bctp-cta-box {
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bctp-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
}

.bctp-cta-box>* {
    position: relative;
    z-index: 2;
}

.bctp-cta-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.bctp-cta-box p {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 0.95);
    line-height: 1.5;
}

.bctp-btn-white {
    display: inline-block;
    text-decoration: none;
    transition: 0.2s;
    padding: 11px 24px;
    background: #fff;
    color: var(--bctp-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    align-self: flex-start;
}

.bctp-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bctp-wcu-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.bctp-wcu-item:last-child {
    margin-bottom: 0;
}

.bctp-wcu-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    background: var(--bctp-icon-bg);
    color: var(--bctp-primary);
    transition: 0.3s;
}

.bctp-wcu-item:hover .bctp-wcu-icon {
    background: var(--bctp-icon-hover);
    color: #fff;
}

.bctp-wcu-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.bctp-wcu-item h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--bctp-text);
    line-height: 1.3;
}

.bctp-wcu-item p {
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
    color: #6b7280;
}

.bctp-loading {
    text-align: center;
    padding: 60px 20px;
}

.bctp-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--bctp-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bctp-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes bctp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bctp-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--bctp-text-light);
}

@media (max-width: 1100px) {
    .bctp-wrapper {
        flex-direction: column;
    }

    .bctp-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .bctp-post-card {
        flex-direction: column;
        padding: 16px 0;
        align-items: stretch;
        gap: 12px;
    }

    .bctp-thumb {
        width: 100%;
        height: 200px;
    }

    .bctp-post-content {
        padding-top: 0;
    }

    .bctp-post-content h3 {
        font-size: 16px;
    }

    .bctp-sidebar {
        grid-template-columns: 1fr;
    }

    .bctp-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .bctp-tabs::-webkit-scrollbar {
        display: none;
    }

    .bctp-header h2 {
        font-size: 24px !important;
    }

    .bctp-wrapper {
        gap: 24px;
        padding: 0 16px;
    }

    .bctp-widget {
        padding: 20px;
    }
}

.bctp-pagination {
    margin-top: 28px;
}

.bctp-page-arrows {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}

.bctp-page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--bctp-border);
    background: var(--bctp-card-bg);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bctp-page-btn:hover:not(.disabled) {
    border-color: var(--bctp-primary);
    background: var(--bctp-primary);
    color: #fff;
}

.bctp-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;

}

.bctp-page-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.bctp-page-info {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}


.bctp-wcu-icon {
    line-height: 1;
}

.bctp-page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--bctp-border);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: var(--bctp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.bctp-page-btn:hover:not(.disabled) {
    background: var(--bctp-primary);
    color: #fff;
    border-color: var(--bctp-primary);
}

.bctp-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #d1d5db;
}