/**
 * Flatsome UX Builder Component: Project Outstanding CSS
 * Module: inc/builder/project-outstanding/project-outstanding.css
 * Class: project-outstanding
 */

.project-outstanding {
    position: relative;
    width: 100%;
    padding: 30px 0 40px;
    background: transparent;
    font-family: inherit;
}

.project-outstanding__container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ==========================================================================
   1. Header Row
   ========================================================================== */
.project-outstanding__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.project-outstanding__subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #00583b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.project-outstanding__dash {
    color: #00583b;
    font-weight: 700;
}

.project-outstanding__title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #004d34;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.project-outstanding__btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.project-outstanding__btn-all:hover {
    color: #00583b;
    border-color: #00583b;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 88, 59, 0.12);
}

.project-outstanding__btn-all svg {
    transition: transform 0.25s ease;
}

.project-outstanding__btn-all:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   2. Main Layout (Left Featured + Right List)
   ========================================================================== */
.project-outstanding__layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* LEFT: Featured Card */
.project-outstanding__featured {
    flex: 0 0 63%;
    max-width: 63%;
    display: flex;
}

.po-featured-card {
    display: flex;
    width: 100%;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.po-featured-card:hover {
    box-shadow: 0 10px 30px rgba(0, 48, 30, 0.08);
}

/* Featured Thumb with Nav */
.po-featured-thumb-wrap {
    position: relative;
    flex: 0 0 46%;
    max-width: 46%;
    background: #f1f5f9;
    overflow: hidden;
}

.po-featured-link {
    display: block;
    width: 100%;
    height: 100%;
}

.po-featured-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.po-featured-card:hover .po-featured-thumb-wrap img {
    transform: scale(1.04);
}

/* Navigation Buttons on Thumb */
.po-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1e293b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    z-index: 2;
    padding: 0;
}

.po-nav-prev {
    left: 12px;
}

.po-nav-next {
    right: 12px;
}

.po-nav-btn:hover {
    background: #00583b;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

/* Content Details */
.po-featured-content {
    flex: 0 0 54%;
    max-width: 54%;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.po-featured-badge-wrap {
    margin-bottom: 10px;
}

.po-featured-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #00583b;
    background: #e8f5e9;
    border-radius: 999px;
}

.po-featured-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
}

.po-featured-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.po-featured-title a:hover {
    color: #00583b;
}

.po-featured-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.po-loc-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.po-featured-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta Specs */
.po-featured-specs {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.po-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.po-spec-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #00583b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.po-spec-icon svg {
    width: 18px;
    height: 18px;
    stroke: #00583b;
}

.po-spec-info {
    display: flex;
    flex-direction: column;
}

.po-spec-label {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.po-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* RIGHT: Vertical Project List */
.project-outstanding__list {
    flex: 0 0 37%;
    max-width: 37%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
}

.po-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    user-select: none;
}

.po-list-item:hover {
    border-color: #cbd5e1;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.po-list-item.is-active {
    border-color: #00583b;
    background: #f7fdfa;
    box-shadow: 0 4px 14px rgba(0, 88, 59, 0.1);
}

.po-list-thumb {
    width: 86px;
    height: 58px;
    min-width: 86px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.po-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.po-list-content {
    flex-grow: 1;
    overflow: hidden;
}

.po-list-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.po-list-item.is-active .po-list-title,
.po-list-item:hover .po-list-title {
    color: #00583b;
}

.po-list-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.po-list-loc-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.po-list-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.po-list-item.is-active .po-list-arrow,
.po-list-item:hover .po-list-arrow {
    color: #00583b;
    transform: translateX(3px);
}

/* ==========================================================================
   3. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .project-outstanding__layout {
        flex-direction: column;
    }
    .project-outstanding__featured,
    .project-outstanding__list {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .po-featured-card {
        flex-direction: column;
    }
    .po-featured-thumb-wrap,
    .po-featured-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .po-featured-thumb-wrap {
        height: 220px;
    }
    .po-featured-specs {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
