/* Business Portfolio Styles */

.wbp-grid {
    display: grid;
    gap: 30px;
    padding: 20px 0;
}

.wbp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wbp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wbp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.wbp-testimonial-item,
.wbp-portfolio-item,
.wbp-case-study-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wbp-testimonial-item:hover,
.wbp-portfolio-item:hover,
.wbp-case-study-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wbp-testimonial-inner {
    padding: 25px;
    text-align: center;
}

.wbp-testimonial-avatar {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}

.wbp-testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.wbp-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.wbp-rating {
    margin-bottom: 15px;
    font-size: 20px;
    color: #ffc107;
}

.wbp-star-filled {
    color: #ffc107;
}

.wbp-star-empty {
    color: #e0e0e0;
}

.wbp-testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.wbp-author-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

.wbp-author-position,
.wbp-author-company {
    font-size: 14px;
    color: #888;
}

.wbp-portfolio-inner {
    background: #fff;
}

.wbp-portfolio-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.wbp-portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wbp-portfolio-item:hover .wbp-portfolio-image img {
    transform: scale(1.05);
}

.wbp-portfolio-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 115, 170, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wbp-portfolio-item:hover .wbp-portfolio-link {
    opacity: 1;
}

.wbp-portfolio-details {
    padding: 20px;
}

.wbp-portfolio-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.wbp-portfolio-title a {
    color: #333;
    text-decoration: none;
}

.wbp-portfolio-title a:hover {
    color: #0073aa;
}

.wbp-portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.wbp-meta-item {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 3px;
}

.wbp-meta-status {
    font-weight: 600;
}

.status-completed {
    color: #46b450;
}

.status-in-progress {
    color: #ffb900;
}

.status-planning {
    color: #dc3232;
}

.wbp-portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.wbp-gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.wbp-case-study-inner {
    background: #fff;
}

.wbp-case-study-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wbp-case-study-content {
    padding: 25px;
}

.wbp-case-study-header {
    margin-bottom: 20px;
}

.wbp-case-study-title {
    margin: 0 0 10px;
    font-size: 22px;
}

.wbp-case-study-title a {
    color: #333;
    text-decoration: none;
}

.wbp-case-study-title a:hover {
    color: #0073aa;
}

.wbp-case-study-client,
.wbp-case-study-industry {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.wbp-case-study-challenge,
.wbp-case-study-solution,
.wbp-case-study-results {
    margin: 15px 0;
}

.wbp-case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.wbp-metric-item {
    text-align: center;
}

.wbp-metric-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

.wbp-metric-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
}

.wbp-case-study-testimonial {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

.wbp-case-study-testimonial blockquote {
    margin: 0;
    padding: 0;
    border: none;
}

.wbp-case-study-testimonial blockquote p {
    font-style: italic;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.wbp-case-study-testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: #333;
}

.wbp-read-more {
    display: inline-block;
    margin-top: 15px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.wbp-read-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .wbp-grid-2,
    .wbp-grid-3,
    .wbp-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wbp-grid-3,
    .wbp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
