.tawthiq-portfolio-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #223345;
    border-radius: 20px;
    overflow: hidden;
    color: #F7F6F3;
    font-family: 'Cairo', sans-serif;
}

.tp-col {
    padding: 20px;
}

.tp-image-col {
    width: 45%;
    position: relative;
}

.tp-images-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.tp-featured-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(1.05);
}

.tp-featured-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.tp-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-content-col {
    width: 45%;
    position: relative;
    display: flex;
    align-items: center;
}

.tp-content-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.tp-content-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: auto;
    transform: none;
    z-index: 2;
}

.tp-title {
    color: #D7B790;
    margin-bottom: 15px;
}

.tp-desc {
    color: #F7F6F3;
    margin-bottom: 20px;
}

.tp-meta {
    margin-bottom: 20px;
    color: #5F6B76;
}

.tp-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #D7B790;
    color: #223345;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.tp-thumb-col {
    width: 10%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 500px;
}

.tp-thumb-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.tp-thumb-item.active {
    border-color: #D7B790;
    opacity: 1;
    filter: grayscale(0%);
}

.tp-thumb-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

@media (max-width: 768px) {
    .tawthiq-portfolio-container {
        flex-direction: column;
    }
    .tp-image-col, .tp-content-col, .tp-thumb-col {
        width: 100%;
    }
    .tp-thumb-col {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
    }
    .tp-thumb-item {
        width: 80px;
        flex-shrink: 0;
    }
}
