/* Main Container */
.cpa-fac-container {
    display: flex;
    gap: 24px;
    padding: 36px 100px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar */
.cpa-fac-sidebar {
    background: white;
    width: 397px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E9EAEB;
}

.cpa-fac-sidebar-header {
    position: relative;
    /* padding-bottom: 48px; */
}

.cpa-fac-header-bg {
    /* background: linear-gradient(135deg, #fb7e37 0%, #f97316 100%); */
    background-image: url(/wp-content/uploads/2025/09/bg-orange.png);
    background-size: cover;
    height: 96px;
    position: relative;
    overflow: hidden;
    margin: 8px 8px 0 8px;
    border-radius: 4px;
}

.cpa-fac-header-bg-appr {
    /* background: linear-gradient(135deg, #fb7e37 0%, #f97316 100%); */
    background-image: url(/wp-content/uploads/2025/09/bg-yellow.png);
    background-size: cover;
    height: 96px;
    position: relative;
    overflow: hidden;
    margin: 8px 8px 0 8px;
    border-radius: 4px;
}

.cpa-fac-header-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200%;
    opacity: 0.2;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 13.9px, rgba(255,255,255,0.1) 13.9px, rgba(255,255,255,0.1) 14.1px),
        repeating-linear-gradient(90deg, transparent, transparent 13.9px, rgba(255,255,255,0.1) 13.9px, rgba(255,255,255,0.1) 14.1px);
}

.cpa-fac-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50% !important;
    border: 5px solid white !important;
    position: relative;
    margin: -48px 50px 0;
    display: block;
    object-fit: cover;
}

.cpa-fac-profile-info {
    text-align: left;
    padding: 16px 24px;
}

.cpa-fac-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cpa-fac-location {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    color: #535862;
    font-size: 14px;
    margin-bottom: 16px;
}

.cpa-fac-location-icon {
    width: 14px;
    height: 14px;
}

.cpa-fac-badges {
    display: flex;
    gap: 8px;
    justify-content: start;
    margin-bottom: 16px;
}

.cpa-fac-badge {
    background: #ffece3;
    border: 1px solid #fdbd99;
    border-radius: 16px;
    padding: 4px 12px;
    color: #983904;
    font-size: 14px;
    font-weight: 500;
}

.cpa-fac-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #535862;
    font-size: 14px;
    justify-content: center;
}

.cpa-fac-rating-icon {
    width: 14px;
    height: 14px;
}

.cpa-fac-section {
    padding: 24px;
    border-top: 1px solid #e9eaeb;
}

.cpa-fac-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cpa-fac-section-label {
    font-size: 14px;
    color: #535862;
    font-weight: 500;
}

.cpa-fac-section-value {
    font-size: 14px;
    color: #fa5e06;
    font-weight: 500;
}

.cpa-fac-about-text {
    font-size: 14px;
    line-height: 1.6;
    color: #535862;
}

.cpa-fac-collapsible {
    background: #fafafa;
    border: 1px solid #e9eaeb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.cpa-fac-collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.cpa-fac-chevron {
    width: 20px;
    height: 20px;
    cursor: pointer;
    pointer-events: none;
    transition: transform 0.3s;
}

.cpa-fac-collapsible.collapsed .cpa-fac-chevron {
    transform: rotate(180deg);
}

.cpa-fac-collapsible.collapsed .cpa-fac-collapsible-header {
    margin-bottom: 0;
}

.cpa-fac-collapsible.collapsed .cpa-fac-collapsible-content {
    display: none;
}

.cpa-fac-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cpa-fac-status-label {
    font-size: 14px;
    color: #535862;
}

.cpa-fac-status-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.cpa-fac-status-icon {
    width: 18px;
    height: 18px;
}

.cpa-fac-status-yes {
    color: #17b26a;
}

.cpa-fac-status-no {
    color: #f04438;
}

.cpa-fac-status-na {
    color: #a4a7ae;
}

/* Main Content */
.cpa-fac-main {
    flex: 1;
    min-width: 0;
}

.cpa-fac-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 2px solid #e9eaeb;
    margin-bottom: 32px;
}

.cpa-fac-tab {
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #535862;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.3s;
}

.cpa-fac-tab.active {
    color: #252b37;
    border-bottom-color: #fa5e06;
}

/* Portfolio Items */
.cpa-fac-portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cpa-fac-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px;
    position: relative;
}

.cpa-fac-image-wrap {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 4px;
}

.cpa-fac-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpa-fac-nav-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.cpa-fac-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.cpa-fac-portfolio-content {
    padding: 16px 24px 24px;
}

.cpa-fac-portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cpa-fac-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cpa-fac-portfolio-title {
    font-size: 24px;
    font-weight: 700;
}

.cpa-fac-favorite-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #983904;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.cpa-fac-favorite-btn:hover {
    background: #fff5f0;
}

.cpa-fac-heart-icon {
    width: 18px;
    height: 18px;
    stroke: #fa5e06;
    fill: none;
}

.cpa-fac-portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 2px dashed #d5d7da;
}

.cpa-fac-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #535862;
    font-size: 16px;
}

.cpa-fac-meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cpa-fac-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #535862;
    font-size: 16px;
}

.cpa-fac-verified-icon {
    width: 16px;
    height: 16px;
    stroke: #535862;
}

.cpa-fac-not-verified {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #535862;
    font-size: 16px;
}

.cpa-fac-not-verified-icon {
    width: 16px;
    height: 16px;
    stroke: #f04438;
}

.cpa-fac-verification-comment {
    margin-top: 15px;
    background: #FFECE3;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cpa-fac-container {
        padding: 48px 40px;
    }
}

@media (max-width: 992px) {
    .cpa-fac-container {
        flex-direction: column;
        padding: 32px 24px;
    }

    .cpa-fac-sidebar {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        border: 1px solid #E9EAEB;
    }
}

@media (max-width: 768px) {
    .cpa-fac-container {
        padding: 24px 16px;
    }

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

    .cpa-fac-image-grid .cpa-fac-image-wrap:last-child {
        grid-column: span 2;
    }

    .cpa-fac-portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cpa-fac-portfolio-title {
        font-size: 20px;
    }

    .cpa-fac-portfolio-meta {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cpa-fac-image-grid {
        grid-template-columns: 1fr;
    }

    .cpa-fac-image-grid .cpa-fac-image-wrap:last-child {
        grid-column: span 1;
    }

    .cpa-fac-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cpa-fac-name {
        font-size: 20px;
    }

    .cpa-fac-section {
        padding: 16px;
    }

    .cpa-fac-collapsible {
        padding: 16px;
    }
}