/* clws-profiles-archive.css */
.clws-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.cloodo-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cloodo-profile-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transform: translateY(-5px);
}

.cloodo-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cloodo-profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cloodo-profile-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.cloodo-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cloodo-profile-logo.placeholder {
    background-color: #f0f0f0;
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

.cloodo-profile-info {
    flex: 1;
}

.cloodo-profile-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.cloodo-profile-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cloodo-profile-title a:hover {
    color: #3498db;
}

.cloodo-profile-slug {
    margin: 5px 0 0;
    font-size: 14px;
    color: #7f8c8d;
}

.cloodo-profile-body {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cloodo-profile-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cloodo-profile-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cloodo-profile-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #f39c12;
}

.cloodo-profile-rating .star {
    margin-right: 5px;
    font-size: 16px;
}

.cloodo-profile-rating .rating-text {
    color: #7f8c8d;
    font-weight: 500;
}

.cloodo-profile-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-outline {
    border: 1px solid #3498db;
    color: #3498db;
    background: transparent;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-link {
    color: #2c3e50;
    background: transparent;
    border: none;
}

.btn-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Pagination styles */
.navigation.pagination {
    text-align: center;
    margin-top: 30px;
}

.navigation.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.navigation.pagination li {
    margin: 0;
}

.navigation.pagination a,
.navigation.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navigation.pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.navigation.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

@media (min-width: 1024px) {
    /* Biến container của footer thành một flex container */
    .cloodo-profile-footer {
        display: flex;
        justify-content: space-between;
        /* Đẩy các phần tử con ra hai đầu */
        align-items: center;
        /* Căn giữa các phần tử con theo chiều dọc */
        padding: 15px 20px;
        /* Giữ nguyên padding từ code gốc */
    }

    /* Tạo một flex container cho các nút để chúng nằm trên một dòng */
    .cloodo-profile-buttons {
        display: flex;
        gap: 10px;
        position: absolute;
        right: 0px;
    }

    /* Xóa các thuộc tính flex cũ của .cloodo-profile-actions vì cha của nó giờ đã là flex container */
    .cloodo-profile-actions {
        display: contents;
        /* Giúp các nút con trực tiếp tham gia vào layout của cha */
    }

    /* Đảm bảo các nút không bị co lại */
    .cloodo-profile-buttons .btn {
        flex-shrink: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cloodo-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .cloodo-profile-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cloodo-profile-logo {
        margin-bottom: 10px;
    }

    .cloodo-profile-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cloodo-profile-card {
        margin-bottom: 15px;
    }

    .cloodo-profile-header {
        padding: 15px;
    }

    .cloodo-profile-body {
        padding: 15px;
    }

    .cloodo-profile-footer {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
}